Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
The example build.spec file assumes that your build image has Docker already installed. I was assuming "wrongly" that CodeBuild will install/configure Docker tools inside the image automatically.ShareFollowansweredNov 2, 2018 at 10:45NKMNKM64111 gold badge77 silver badges2121 bronze badgesAdd a comment|
I am using AWS CodeBuild to build my application. I am using example build spec file as given here:https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-exampleI have already uploaded my custom Docker image to AWS ECR having requisites to build my application (Java/Scala based). I ge...
AWS CodeBuild /codebuild/output/tmp/script.sh: docker: not found
2 Please advise on how to utilize more RAM You could: Split your app into multiple processes. Each process' VM can use up to the heap limit. You will be limited to using inter-process communication (IPC) between the two processes, such as bound services. Move some of y...
I am working on an app that will be exclusively used on a limited set of devices, all of which have 6GB of RAM. Currently my app is misbehaving as it touches the 512MB mark. I want to be able to utilize more RAM (~1GB) because I know the devices allocated to users are for one purpose only and that is to use this app s...
How to utilize more than 512MB of RAM in your android app?
Check first if this is not a case of very long upload,as in this instance.For that, as I describedin this answer, try (with Git 2.10 or more recent) the--progressoption:git push --progress
I am attempting to push updates to git using bitbucket and it hangs at this pointTotal 349 (delta 84), reused 1 (delta 0)EDITTED here is the command I rungit add . git commit --m "infor..." git pushThis is the complete thing of what I get>>>>Counting objects: 398, done. Delta compression using up to 8 threads. Compress...
attempting to push updates to bitbuckets hangs
It's just an iterable of objects sofor v in volumes: print(v.id)if you want to get a list of id :l = [v.id for v in volumes]ShareFollowansweredMay 19, 2016 at 13:27polkupolku1,61022 gold badges1515 silver badges1313 bronze badgesAdd a comment|
I am trying to get volume-id list of aws instance using boto 3, I am getting sort of collection manager but I don't know how to get the data inside.import boto3 ec2 = boto3.resource('ec2', region_name='us-west-2') instance = ec2.Instance('i-xxxxxx') volumes = instance.volumes.all() print volumesThe answer I got is:ec2....
Boto3 get EC2 instance's volume
round(increase(**myCounter**[60s]))ShareFollowansweredMay 26, 2019 at 8:33Doron LeviDoron Levi9555 bronze badges1why is a round required here?–joydeep bhattacharjeeFeb 4, 2022 at 6:03Add a comment|
I`m trying to watch values in Prometheus per 1 minute.For example, If in every 30 seconds I'm increasing a counter by 10, that's how the values will be:#Time Interval New Counter Value 1 10 10 31 10 20 61 10 30 91 10 40 121 10 5...
Count values per X minutes in Prometheus
grep -Lprints the names of the files that matched the regular expression, so it printsbanned.txtwhenever it finds a match. That output is being included in theawkoutput, so it gets written to the output file.If you just want to know ifgrepfound a match, usegrep -q. This suppresses the output, so you can just test the e...
So, i want to filter some values using awk, to insert them to the file after this so that they don't appear in the script file, for this im trying to use system grep functionand im getting this output everytime i use the script/sbin/ufw deny from 187.210.68.101 to any /sbin/ufw deny from 45.88.221.190 to any /sbin/ufw ...
Using system function in the bash, causes problem with output
Debug + Windows + Memory + Memory 1, set the Address field to "array". You'll see this when you switch the view to "4-byte Integer": 0x018416BC 6feb2c84 00000005 00000008 00000007 00000006 00000005 00000004 The first address is the address of the object in the garbage collected heap, plus the part of the object hea...
In an interest to delve deeper into how memory is allocated and stored, I have written an application that can scan memory address space, find a value, and write out a new value. I developed a sample application with the end goal to be able to programatically locate my array, and overwrite it with a new sequence of nu...
How is an array stored in memory?
It is probably not working because there are spaces in the date. So, to get around that, you will need to put the path inside double quotes:tar -cvf "....path with spaces...."then replace the double quotes in yourdatecommand with single ones like this:tar -cvf ".... $(date +'...') ..."You may need to create the directo...
i am using that command to create backup of users images ( via cron job command )tar -cvf /home/abc/BackupNow/user_$(date +"\%Y.\%m.\%d.\%S.\%N").tar /home/abc/public_html/app/webroot/data/user/ 2> /home/abc/BackupNow/user.logbut here "/home/abc/BackupNow/user_$(date +"\%Y.\%m.\%d.\%S.\%N").tar" i want to add date wi...
how to create tar file in date wise folder linux
If you want to pass unmanaged pointer (that you manage by yourself) to code expecting smart pointer such as shared_ptr, you can just disable «smart» pointer functionality by creating empty, but not-null shared_ptr via aliasing constructor: Texture* unmanagedPointer = ... shared_ptr<Texture> smartPointer(shared_ptr<Tex...
First of all, I do realize this completely contradicts the purpose of a shared_ptr. I am dealing with some library code where instances of a ParticleSystem expect to have a shared_ptr passed to them during construction to set the texture used for each particle. The thing is, I've already built the rest of my program i...
Pass an object to a function expecting shared_ptr without actually sharing ownership
I've managed to solve this myself. I usedgallery_saverpackageto save the recorded video to gallery. Then I can delete the video file from cache using dart:io.final video = await _cameraController.stopVideoRecording(); await GallerySaver.saveVideo(video.path); File(video.path).deleteSync();
I'm using thecamera packageto record videos in the app. How can I save the recorded video to gallery, if it saves to the app cache directory? I'm able to get the 'XFile' but I don't really know to how to go from there.final file = await _cameraController.stopVideoRecording(); print(file.path); // /data/user/0/com.examp...
How to save video recorded with camera package to gallery in Flutter?
2 If you are able to clone ssh://[email protected]/my-company/some-repo without error message, but Terraform is not, that means the terraform plan is executed with a different account (or different $HOME as in here) than your regular account. If it was done with the same ac...
When I run terraform plan, I get errors like: ╷ │ Error: Failed to download module │ │ Could not download module "foo" (main.tf:123) source code from │ "[email protected]:my-company/some-repo": error downloading │ 'ssh://[email protected]/my-company/some-repo': /usr/bin/git exited with 128: │ Cloning into '.terraform/...
Terraform error "Host key verification failed" with SSO
Try just removing that character class and just use.instead:RewriteRule ^(.*\.less)$ ./index.php?f=$1This will match any file name that ends with.lessregardless of what other characters come before it.
I am trying to write aRewriteRulethat will match files by their extension, and what I've come up with is:<IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On RewriteRule ^([^.]*\.less)$ ./index.php?f=$1 </IfModule>This works fine when the only dot in the filename is the one separating the exten...
How can I match files by extension when they have other dots in their filenames?
Use the following htaccess codeRewriteEngine on RewriteBase / RewriteCond %{QUERY_STRING} (^|&)view=form(&|$) [NC] RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI}? [R=301,L]In case you want to preserve other query parameters (like?foo1=bar1&view=form&foo2=bar2) useRewriteCond %{QUERY_STRING} ^(?:(.*)&)?view=form(?:(&....
So basically, I am trying to remove a parameter from all URLs within my site.For example:http://www.mydomain.com.au/thispage.html?view=form http://www.mydomain.com.au?view=form http://www.mydomain.com.au/this-is-a-page.html?view=formI require all the pages above to go to their version without this parameter, such as:ht...
How to redirect a URL with a specific parameter to a URL without one?
You can set memory allocation and deallocation hooks, using _CrtSetAllocHook.
I have a problem with an application I'm debugging. Steady state memory usage is a few hundred megabytes. Occasionally (after several hours) it gets into a state where its memory usage soars to many gigabytes. I would like to be able to stop the program as soon as memory usage this happens. Where control passes thr...
Visual C++: possible to limit heap size?
Resolved. As globally installed node modules end up under /usr/local/bin I simply needed to add the following at the beginning of my pre-commit: PATH=$PATH:/usr/local/bin:/usr/local/sbin i.e. appending both /usr/local/bin and /usr/local/sbin to PATH at the point of execution.
I've created a very simple pre-commit script:- #!/usr/bin/env sh # Run tests npm test if [ $? -ne 0 ]; then echo "Tests failed. Aborting.." exit 1 fi exit 0 When I run git commit at the command line (with failing tests), I get the expected exit 1 with the message Tests failed. Aborting... However, If I use Git...
Git pre-commit hook failing in GitHub for mac (works on command line)
After running ! git clone --recursive https://github.com/Microsoft/LightGBM You can run this oneliner which will build and compile LightGBM with GPU enabled in colab: ! cd LightGBM && rm -rf build && mkdir build && cd build && cmake -DUSE_GPU=1 ../../LightGBM && make -j4 && cd ../python-package && python3 setup.py in...
I often run LGBM on Google Colabratory and I just found out this page saying that LGBM it set to CPU by default so you need to set up first. https://medium.com/@am.sharma/lgbm-on-colab-with-gpu-c1c09e83f2af So I executed the code recommended on the page or some other codes recommended on stackoverflow as follows, !gi...
Get LightGBM/ LGBM run with GPU on Google Colabratory
If the repo is only a local repo, you will not have a any origin/** branches in your log. You can check this with the commandgit remote, if this returns "origin", it is a remote repo and you will have the origin-branches. Though it might not always be on the last commit. If you make a commit locally, i.e.git commit -m ...
I'm kinda new to the git system, I would like to understand a little thing, maybe it's not even an issue. I got 3 projects, two of those have the origin/master/head signatures in the last commit, one has only master: why?I read this answer but it's not completly clear to me:How to add missing origin/HEAD in git repoTha...
Missing head and origin in repo
Referring tochangelogs, they expand the functionality of custom api-server:The webhook admission controller in a custom apiserver now works off-the-shelf. (#60995,@caesarxuchao)Therefore, that may cause increasing of ram usage.
Upgraded recently from v1.9.1 to v1.9.6 of kubernetes. Everything is running fine but the kube-apiserver memory usage has hugely increased and is sitting just over 900mb as standard.It's not a huge issue as there is available RAM for it to do so but wondered if there was a way to diagnose what might cause this RAM incr...
kube-apiserver high RAM usage
These changes are completely logical.According to the explanation of the Prometheusdocumentationsum_over_timeis:the sum of all values in the specified intervalTherefore, the sum of values from24/12/2022 00:06:40to25/12/2022 00:06:40is not the same as the sum of values from24/12/2022 00:00:00to25/12/2022 00:00:00So24/12...
I use the query below to get the sum of daily values pve_network_receive_bytes. pve_network_receive_bytes is a gauge type.sum_over_time(increase(pve_network_receive_bytes{id="000"}[1d] offset-24h )[1d:1d])When using the API query range and setting the start value as23/12/2022 00:06:40and the end value is30/12/2022 00:0...
prometheus query range when change hours in start time change all values in this period
My org and I solved this ultimately by keeping the Docker container as thin as possible and using AWS snapshots and volumes to manage the external payload rather then try to use the first boot in order to pull down the data to the local Docker container. This required some minor refactoring but gave us what we needed ...
I'm deploying an app with a start-up script that generates cache data if it does not exist, if it does exist this process will be skipped and the main app will run, this is all controled by ENTRYPOINT["/opt/entrypoint.sh"], a customs script that determines which thing to do based on scenario. The problem I'm having i...
How to keep ECS container alive while running long running start up script
Enable mod_rewrite and .htaccess throughhttpd.confand then put this code in your.htaccessunderDOCUMENT_ROOTdirectory:Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteCond %{ENV:REDIRECT_STATUS} 200 RewriteRule ^ - [L] RewriteRule ^([^/]+)(/.+?)/?$ negocio$2.php?shopURL=$...
I want to turn:/1/2into:/negocio/2.php?shopURL=1I don't know much of htaccess and my rule isn't working. This is what I tried:RewriteRule ^([^/]+)(/.+)? /negocio$2.php/?shopURL=$1 [L,QSA]
.htaccess rewrite rule /directory/ to php files?
You're not getting an analog to "NET::ERR_CERT_REVOKED" message becauserequestsis just an HTTP request tool; it's not a browser. If you want to query an OCSP responder to see if a server certificate has been revoked, you can use theocspmoduleto do that. There's an examplehere.The answer is going to be similar for "NET:...
I'm working with Python requests and testing URLs fromhttps://badssl.com/certificate section and all the invalid URLs are returning errors except forhttps://revoked.badssl.com/andhttps://pinning-test.badssl.com/. They are responding with200 status codes. I would like someone to explain why this is happening, despite th...
Why is 'https://revoked.badssl.com/' and 'https://pinning-test.badssl.com/' returning 200 response using Python requests?
Well. The absolute theoretical maximum is 2^504, but that assumes no limitations on the octets making up the names. If you want the names limited to ASCII letters and digits, the answer is 111444219848545291112918149658401217019177846881717006276548100629318214534968256903948922840416256 (that is, 36^63).In another sen...
I am planning to build a service based on subdomain like wordpress or tumblr. I want to know what is the maximum number of subdomains a domain can have.
How many number of subdomains can a domain have?
Caching is more suitable for on demand requests, where you cache data that is needed on cache misses. It will usually be stored in memory and cleared after a while to avoid stale data which does not let you operate in disconnected mode. The other alternative is more suitable for disconnection mode by pre-fetch required...
What is the difference between Database Hoarding and Caching?? They seem the same to me. I know that hoarding has something to do with the use of the database when the device is disconnected from the server. Doesn't caching help for this? What is the difference?
Database Hoarding and Caching
You can use something like this to make itsot-of tld agnostic:RewriteCond %{HTTP_HOST} ^(?:www\.)?short\.(.+)$ [NC] RewriteRule ^ http://longer.%1%{REQUEST_URI} [R=301,L]ShareFolloweditedSep 26, 2013 at 11:32answeredSep 26, 2013 at 11:10anubhavaanubhava771k6666 gold badges582582 silver badges649649 bronze badges1Realiz...
I want to redirect short.tld to longer.tld regardless of whether the tld is dev or com and depending on what was requested.So like this...short.dev should redirect to longer.dev short.com should redirect to longer.comSo far I have this which is working (for .dev):RewriteCond %{HTTP_HOST} ^((www\.)?shorty\.*) [NC] Rewr...
.htaccess domain redirect - TLD agnositc
You can use anyaggregate functionto be independent from the label "pod".Example:Series 1: "pod":"pod-1", "replica":"replica-1", "namespace":"dev"Series 2: "pod":"pod-1", "replica":"replica-2", "namespace":"dev"Series 3: "pod":"pod-2", "replica":"replica-1", "namespace":"dev"Series 4: "pod":"pod-2", "replica":"replica-2...
Every rolling update occur, the pod name of deployment must be changed. I have deployment that has 3 replicas and I want to monitor of each replica. If the pod name always change, what should I do to monitor each of replica?Example current promQL for pod's memory monitoring:request resourcekube_pod_container_resource_r...
PromQL for Monitoring Kubernetes Replicas
You can pass a File to Glide. Glide.with(context).load(new File("your/file/name.jpg")).into(pollWebView);
In my app, i have an image view, the image content I get from the server is in the format of base64 encoded string. I store it locally and decode it to bitmap. This bitmap is loaded to the image view. This makes the app to scroll slow. Now I found the reason behind that is no caching is done for the bitmap. One recom...
Android glide load bitmap
When I started working with NATS I had a similar issue. For me, the best and easiest solution was to do port-forwarding:kubectl port-forward service/nats 4222:4222after doing this, you should be able to do:nats server ping -s nats://localhost:4222
I have deployed NATS (https://nats.io/) into my Kubernetes cluster which is running on AWS and I am trying to expose this service externally.These are the current details of my nats service.NAME TYPE CLUSTER-IP EXTERNAL-IP nats ClusterIP None None Port(s) 4222/TCP,6222/TCP,8222/TCP,77...
How to expose a NATS server externally
As mentioned earlier, there is no API that explicitly returns the list of available Kubernetes versions available in AWS EKS. However, there is a somewhat hacky way to get this by describing all add-on versions available and getting the K8s versions they are compatible with. I guess it would be a fair assumption that ...
I am looking for a programmatic way to get available Kubernetes versions in AWS EKS. Something similar to the following Azure CLI command: az aks get-versions --location eastus --output table
AWS EKS - Get available Kubernetes versions
1 As seen here, you should make sure your existing certificates included with Git For Windows are referenced in your global configuration: git config --system http.sslcainfo /ssl/certs/ca-bundle.crt That file is in the Git installation path, under: ./mingw64/ssl/certs/ca-...
I have searched through many answers on how to clone visual studio code to private repository on GitHub, however I keep on receiving the same error. error setting certificate verify locations ca path none I have tried following solutions to create a certificate and to change network provider to secure channel, but I...
Real solution to clone Visual Studio 2019 to private Repository on github
As of this writing (redis-py 4.3.1) there exists another pipeline object on the timeseries class itself. The following will work:import redis r = redis.Redis() pipe = r.ts().pipeline() pipe.add("TS1", 1, 123123123123) pipe.add("TS1", 2, 123123123451) ... pipe.add("TS1", 15, 123123126957) pipe.execute()
I am looking to use pipeline to insert data into a redis Timeseries but cannot find a way to ts.add via pipeline.I can do basic example with get / set:import redisimport jsonredis_client = redis.Redis(host='xxx.xxx.xxx.xxx', port='xxxxx', password='xxxx')pipe = redis_client.pipeline()pipe.set(1,'apple')pipe.set(2,'oran...
Redis Timeseries Pipeline with Python
For now the possible solution was to do the following: - add a remote debugger to the code, which listens upon start - port forward the traffic - clone the code (install), such that the lib gets run, as soon as you run the main - run the code - it waits until attach - attach to the debugger.Voila it works.
Current ArchitectureOn the most foundation part is Kubernetes with multiple different container images.On top of them, we have a python library which dynamically loads our code, which we write and install on those containers after deployment. We write stateful applications on k8, that's why this kind of architecture.L...
Debug Python on Kubernetes
40 Yes, you can. Just create a file /.ebextensions/00-set-timezone.config with following content commands: set_time_zone: command: ln -f -s /usr/share/zoneinfo/Australia/Sydney /etc/localtime This is assuming your are using default Amazon Linux AMI image. If you us...
I´m running an EC2 instance through AWS Elastic Beanstalk. Unfortunately it has the incorrect timezone - it´s 2 hours earlier than it should be, because timezone is set to UTC. What I need is GMT+1. Is there a way to set up the .ebextensions configuration, in order to force the EC2 instance to use the right timezone?
Amazon Elastic Beanstalk - Change Timezone
Filesdirective doesn't take full path.Use this directive in/scripts/.htaccess(create it if it doesn't exist):<files settings.php> order allow,deny deny from all </files>
I have files which contain important settings(MySQL password etc...), and jQuery scripts. I don't want them to be accessed(over link, eg. link.com/scripts/jquery_script.js). I made something but that code don't work. Code is in .htaccess file. .htaccess file is in root. I put echo in settings.php file, and I can see it...
Forbidden access to custom files
This was fixed by using Workload Identity to bind the K8s Service account to the GCP IAM service account:https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
I have created a GKE Service Account.I have been trying to use it within GKE, but I get the error:pods "servicepod" is forbidden: error looking up service account service/serviceaccount: serviceaccount "serviceaccount" not foundI have followed the setup guide in thisdocumentation.1.Created a GCP Service Account called ...
Pods in GKE return "error looking up service account" - how to correctly use a GCP service account in GKE?
Probably the best option is for the process to put itself into a Windows job and apply the ProcessMemoryLimit option. (One catch: this won't work if the process is already in a job, e.g., because it is being run as a startup script or scheduled task.) You can also use the same technique to limit the memory usage of ...
When I run a 64-bit program on Windows (version 7 and up) and the program tries to allocate too much memory (close to 100% of physical memory) the system grinds to a halt. If I don't catch it in time and kill the offending process the system will become unresponsive and a hard reboot is required. Obviously the program...
Windows freezes due to excessive memory allocation of 64-bit process
If you want to get details of the newly inserted data, add a new column in your table likeadd_date. Check this add_date equals to current date. If yes you will get the details of every day's new date. You can use the below code.$today = date("Y-m-d"); $check_new_data = mysql_query("SELECT name,amount, trans_id, msisdn,...
I want to select and use ONLY new records that have been inserted between a Cron job runs and the next run. In this sense I don't repeat any data or records that I worked on earlier.From the select statement below, please someone direct me, thank you.// select statement should pick fresh records only after the first cr...
mysql select statement to pick only newly inserted records after cron job run
My fault, using nginx.ingress.kubernetes.io/rewrite-target can achieve the above functions:Routing:example.com/asset/web/(.*)Then use the ingress annotation feature:nginx.ingress.kubernetes.io/rewrite-target: '$1'
I am trying to use ingress-nginx to implement nginx's proxy_pass specified with a URI to distribute different requests to different backend services. How do I configure it?The version of ingress-nginx I am using is 0.22. I tried using the nginx.ingress.kubernetes.io/rewrite-target annotation, but it is not the effect I...
How to implement absolute path forwarding request using ingress-nginx
In the docs here:https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker.htmlIs stated the following:If a Docker container running in an Elastic Beanstalk environmentcrashesor is killed for any reason, Elastic Beanstalk restarts it automatically.So If I understand it correctly the restart policy is ...
I have a multi container Elastic Beanstalk application that contain 4 types of containers. One of the containers isscrapinghub/splashwhich is designed in a way that you can set a max memory limit where the container should shut down, and then the idea is that you run it with arestart: alwayspolicy that brings it up aga...
Restart Policy on AWS Elastic Beanstalk Docker Containers
You can commit the changes you made by: Short Command reference: docker commit <container id or name> <repository name>/<your image name>:<tage aka version> Example: docker commit c3f279d17e0a svendowideit/testimage:version3 Full Reference: Usage: docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]] Create a new...
I have a docker container already running. I have made some configuration changes, let's say have added some host info in /etc/hosts inside the container. How do I keep the changes saved, so that next time when I open an interactive shell to the container I don't have to do the same stuff again ? For now I have create...
Startup script for a docker container
Can I connect two or more pods to the same PVC(persistent volume claims) without deleting or disconnecting the earlier created pods?Yes, this works. But in practice this is a bit more complicated.Persistent Volumes can be created with differentaccess modes. Your storage system may limit whataccess modesyou can use. E.g...
I mean is there a one to one or many to one relationship between pod and PVC? Can I connect two or more pods to the same PVC(persistent volume claims) without deleting or disconnecting the earlier created pods?
Can we connect multiple pods to the same PVC?
0 Bitmaps always stored in the device Heap Memory , and your device heap memory can't afford that number of Bitmaps as may be the way you try works on the same resolution of the image, So, at first try to grow the heap using your app manifest, then try this way to resize ...
I wanted to scale image in order that they kept the same ratio. Thus for example, an arrow has the same size in all images after the rescaling. So I followed this example and it works fine. But after lost of manipulations of the listview, I can have an OutOfMemoryError error. I ckeck the heap dump in DDMS and that's r...
Leak of memory with a rescale of bitmap
14 There is also a way of disabling this in system.webServer if you are using IIS7/7.5 or IIS Express. This will work in your main web.config file (for both webforms and mvc) and also in web.config files in subfolders, to disable it for particular areas of your application....
is there a way to disable server caching globally in ASP.NET? Like by adding some sort of setting to the web.config file? So far I've tried adding these and it didnt make a difference... <caching> <sqlCacheDependency enabled="false"></sqlCacheDependency> <outputCache enableOutputCache="fa...
Disable cache globally .NET
11 You can actually modify your nginx configuration via the startup command of your app service. SSH into your app service. Copy over the default nginx configuration file to your home directory: cp /etc/nginx/sites-available/default /home/site/nginx.conf Modify the co...
I am deploying a ReactJS application in Azure App Service that runs on Linux container. The ReactJS application has router. The refresh of internal pages failing due to the ReactJS routing. As per React-router and nginx , I can solve this problem by adding following block in nginx.conf location / { try_files $uri /i...
Modifying nginx.conf for Azure App Linux Service
$ git show --format="$(git rev-parse --abbrev-ref HEAD)/%h" -s master/53baf63
Is there a git command that can describe the current state as "branch/short_commit_hash". I know this is possible in two seperate commands (one for branch and one for the short commit hash), but is the a specific command that can do this? Thanks, Evan
Is there a git command that can describe the current state as "branch/short_commit_hash"
The local variables for your function go into the stack. Your stack size is not large enough to hold your arrays.Additional info:You can see your stack size with the following:ulimit -sShareFollowansweredJun 16, 2014 at 8:13Arjun SreedharanArjun Sreedharan11.2k22 gold badges2727 silver badges3434 bronze badges1Doesn't ...
So,i was solving a problem onSPOJ.I have to handle large number of values of order2^18.I am on a system with4 GB( 2**34 Bytes) ram. While allocating memory for my program , i observed something strange. I am usinglong longqualifier for storing the input in two arrayssum1[1<<17]andsum2[1<<17].So, total memory allocated ...
Memory issue with c program
Yes - your intuition is correct. This is essentially what the database people would call amaterialized view. For example, to give an achievement for post count > 30, do something like this:posts { id, user_id, content } users { user_id, post_count, has_thirty_posts }When a post is inserted into thepo...
I've been looking at an open source clone of SO,http://github.com/cnprog/CNPROGI don't know Python/Django but I can still read whats going on,The developers, seem to only be awarding badges with cron jobs, The awards are given out by the methods, being the "Rules" of the Criteria that must be met to achieve the award.i...
Badge achievement system like SO: Data being used + Criteria(instant awarding & cron jobs)
There is another question similar to this with a solution:How to write commands with multiple lines in Dockerfile while preserving the new lines?The answer to this question is more particular in how to use multiline strings in bash rather than how to use Docker.Following this solution you may accomplish what you want t...
I want to output the following text in a Dockerfile:*****first row ***** *****second row *****One way is to do it like that:cat > Dockerfile <<EOF FROM alpine:latest RUN echo ' *****first row ***** ' >> /home/myfile RUN echo ' *****second row ***** ' >> /home/myfile ENTRYPOINT cat /home/myfile; sh; WORKDIR /hom...
How to output a multiline string in Dockerfile with a single command
To answer your first question, assuming that you are using apache2 as the web server (you told about .htaccess) , I would suggest using mod_rewrite for redirecting the urls to a different domain. When using mod_rewrite you are enabled to setcookiesAlso you can create a php script that forwards to your domains and sets ...
we are running an online portal which is available via different domains (e.g. example.de, example.at, example.ch) as well as variations of it (e.g. exam-ple.de) and payment for all countries is done via secure.example.com, so it is not possible to access cookies on secure.example.com which were set on example.de.First...
Cookies available on different domains / htaccess forwarding
Thesonar-project.propertiesconfig file must be in the root of your eclispe project. And it should looks like this:# Required metadata sonar.projectKey=nutch-key sonar.projectName=nutch-prj sonar.projectVersion=1.0 # Path to the parent source code directory. # Path is relative to the sonar-project.properties file. Repla...
We use Jenkins for both building application and running sonar analysis through maven on the code.I am able create a local server, and run sonarqube analysis using sonar runner.I was able to connect my eclipse instance to the company sonarqube runner and get the issues from existing analysis on eclipse. But while runn...
Running Sonar Code Analysis from Eclipse Instance
The function IsEmpty should be declared like bool IsEmpty( const Queue &q ) { return q.head == nullptr; } The function Put is invalid. The pointer head is not set when the queue is empty. The function can be defined the following way void Put( Queue& q, Atom x) { Element *p = new Element { x, nullptr }; ...
So I wrote some basic operations to learn queues.The problem is that when I run the program it crushes and I don't know why. The code: header #ifndef HEADER_H_ #define HEADER_H_ typedef int Atom; struct Element { Atom info; Element* succ; }; struct Queue { Element *head, *tail; }; Queue InitQ(void); boo...
queue basic functions (put) calling (the program crashes)
You can use the issue search endpoint with the in and repo¹ keywords: GET /search/issues?q=text+to+search+in:title+repo:some/repo Of course, issue titles aren't guaranteed to be unique. You'll have to request each of the issues that comes back and see if its body contains the word you're looking for. Even in that cas...
I need to modify the body of an existing GitHub issue in a Project. All I'll be passed is the title of the issue, and a word (the word exists in the body, and I'll just need to fill the checkbox next it). It looks like to do this I'll need to use the GET API to get the body of the issue, modify it, and then use the ED...
Get Github Issue based only on title
Looks like it is a special skill called Flash Briefing skill. Though feed skill is still rendering as standard card, Amazon has not made embedding a link in the card response in custom skill available to public.check the documentation:alexa documentationSee thislink. In the table there is something calleddisplay Urlwhi...
I have seen few apps which are able to embed links in the response of Standard card in Alexa. for eg :: see the skill :https://www.amazon.co.uk/Guardian-News-Media-The-US/dp/B01N5HQRUCThey are able to show the links in the standard card response.Something like thisThe documentation of the Alexa skills does not say anyt...
How to embed 'read-more' like url in Standard Card response of Alexa
My question how do I get github to show me all commit IDs for a file EVER If you forced push (git push --force) your revised commit once in a while, that commit 8d8f7 has been replaced by a more recent commit with a different SHA. That means 8d8f7 is now only reference in the reflog of the GitHub repo, which only Gi...
For a few days I was re-writing install.sh file for Scrollback project and since I was the only one working on this and doing it locally, I kept commit ammending the same commit, pushing once in a while to my fork's master. (please ignore best practises here, I was working alone). In between I remember emailing someon...
Does github remember commit IDs?
You should be using>>for redirection to append to the file, rather than>which overwrites the log each time the script runs.*/1 * * * * /usr/bin/php /path/to/CRON.php >> /path/to/log/CRON_LOG.txt 2> /dev/null ##---------------------------------------^^^^^^There really isn't any need to dofopen()/fwrite()inside the scrip...
cron line look's like:*/1 * * * * /usr/bin/php /path/to/CRON.php > /path/to/log/CRON_LOG.txt 2> /dev/nullCRON.php<?php require_once 'config.php'; define('CRON', dirname(dirname(__FILE__))); $parts = explode("/",__FILE__); $ThisFile = $parts[count($parts) - 1]; chdir(substr(__FILE__,0,(strlen(__FILE__) - strlen($ThisFil...
crontab php file and output to log file result
There is no word in your question confirmingmaster_config.shhasnt been executed.Below line doesnt mean it hasnt been executed. If it doesnt work - you should definitely see a log/var/log/cloud-init-output.logas suggested in the comments+ user_data = "def16ed029e3ecb79f09f750c548beed53d7f60d"From the...
I am working with Terraform to luanch an Ec2 instance, where I want to execute some commands. I put a bash file in user_data on aws_instance resource, but the file is not executed.... resource "aws_instance" "master" { ami = lookup(var.amis, var.region) instance_type = var.master_instance_type key_name ...
user_data doesn't run after a terraform application
int char_compare(const char* a, const char* b) { if(*a < *b) { return -1; } else if(*a > *b) { return 1; } else { return 0; } } NSString *sort_str(NSString *unsorted) { int len = [unsorted length] + 1; char *cstr = malloc(len); [unsorted getCString:cstr maxLength:le...
I'm looking for an Objective-C way of sorting characters in a string, as per the answer to this question. Ideally a function that takes an NSString and returns the sorted equivalent. Additionally I'd like to run length encode sequences of 3 or more repeats. So, for example "mississippi" first becomes "iiiimppssss", a...
How to sort a string of characters in objective-C?
You just needhome.phpin yourDirectoryIndexto make it works. Remember that this is using in .htaccess file of your root project:DirectoryIndex home.phpShareFollowansweredApr 3, 2013 at 5:04EliEli14.8k55 gold badges6060 silver badges7777 bronze badges25It applies to all sub folders. I want to apply only to the root folde...
I have websitehttp://mywebsite.comIf I hit this URL it take index.php and index.html as default page. How can I make home.php as default page. I have tried this but not working by placing following code inside .htaccess file of public_htmlDirectoryIndex home.php index.html index.php
how to make default page home.php instead of index.html and index.php
As seen in the comments, the problem lied in the paths within your script: you wanted to use/var/www/cmdb/backupand just wrotebackupbecause you assumed it was fine since the script runs in the same directory.So, in general, never assume paths in your scripts from crontab: cron runs under a very limited environment and ...
I've written a php script that creates a backup of a mysql database and set it to run daily using crontab on Ubuntu server, but the script is never executed (at least so it seems).The script is called backup.php.It generates a backup (sql within a gz archive) and stores it in folder /backup.It adds a few lines of text ...
PHP script does not run as cron job on Ubuntu Server
GitHub wikis are powered byGollum, anopen sourceGit-powered wiki that can beinstalled locally. The exact mechanism for installing Gollum varies by operating system, but something likegem install --user-install gollumshould do it on Linux or Mac systems with Ruby already installed.Then you can simply rungollumfrom the w...
I have several github repos that have their own wikis.I can checkout out the wiki files as markdown by runninggit clone nameofproject.wikiwhich is great. However those files are just markdown - I'd like to be able to generate working linked html pages from them. Is there a tool or system that makes it possible to do ...
Generate a cloned Github wiki locally
mod_rewrite rules are applied recursively. Here is what happens when you request1Q2GmFuFdZ.jpg:1Q2GmFuFdZ.jpgmatches the pattern, becomesimage.php?id=1Q2GmFuFdZ.jpgSince filename has changed, another iteration is performed with the re-written URLimage.phpmatches the pattern as welland rewritten asimage.php?id=image.php...
I have the url:http://www.mywebsite.com/i/1Q2GmFuFdZ.jpgI want to rewrite a rule that makes it go to the fileimage.php?id=1Q2GmFuFdZ.jpgIn my PHP file, I have this<?PHP print_r($_GET); ?>This is what I have in my htaccessRewriteEngine On RewriteRule ([a-zA-Z0-9]+[\.]+[a-z]{3})$ image.php?id=$1This is the output that I ...
htaccess rewrite rule for image url
Unfortunately, the SonarQube analysis must all be done at once, so you'll need to wait until your integration tests have finished and the utilize the "reuseReport" mode to consume the results of your earlier unit test run(s).Report reuse info for Java:http://docs.codehaus.org/display/SONAR/Code+Coverage+by+Unit+Tests+f...
Let's assume I've constructed a (very simple) build pipeline in Jenkins into two jobs:Compile-and-unit-testsIntegration testsI'd ideally like to get code coverage from both sets of tests into SonarQube. Is this possible? It seems like SonarQube assumes that every update is for the entirety of the project as a single ...
Aggregating SonarQube code coverage results across multiple stages of a build pipeline
The mechanisms you describe (AandCNAMErecords vs.301redirects) are part of two different protocols (DNS and HTTP).AandCNAMErecords have nothing to do with which site your HTTP server serves for different requests.Let's look at two different DNS configurations:Configuration 1 (CNAME record)Host | Type | Dat...
To handle Canonical URL is it best practice to do a 301 redirect or better to have the same IP Address for both www and non www domain?For example:Canonical URL/domain wanted ishttp://example.comDomain | A Record ------------------------------------ example.com | 192.0.2.34 www.example.com | 192.0.2.34I...
Domain IP address for www and non-www for Canonical URL
Get the certificate signed by a CA.That's what Facebook and Google did.ShareFollowansweredMay 15, 2014 at 2:33user207421user207421308k4444 gold badges315315 silver badges485485 bronze badgesAdd a comment|
I have installedSSLon my server. But when I go to the page of my website that is onSSLit shows me the warning page first. I have to install theSSLcertificate. Is there any way to avoid this?
How to avoid the warning screen of SSL error
The cause of the failed connectivity lies within your ACL config for "NetworkAclEntryInPrivateAllowVpc" and "NetworkAclEntryOutPrivateAllowVpc". If you open that CIDR block from "0.0.0.0/16" to "0.0.0.0/0", Lambda can access the internet. I'm not that knowledgeable about NAT, but it seems that the NAT traffic is block...
My problem is that a Lambda function that I run behind NAT inside a VPC with an IGW doesn't have access to anything on the Internet. What I'm trying to do is creating a VPC that has: Internet Gateway; 2 private subnets (PrivateA and PrivateB) in availability zones A and B respectively; 1 public subnet (PublicA) in av...
AWS Lambda in VPC doesn't have internet access behind NAT
HAProxy allows multiplecrtbind options, and will use the first certificate it loads as the default. So if you want to specify a default if no SNI matches you can do something likethis:bind *:443 ssl crt /etc/ssl/default.pem crt /etc/ssl/certdir/
I have a ha-proxy with multiple ssl certificates. all certificates stored in /etc/ssl directory. every thing works well but when I use ip address of server (in web browser) it matches the first ssl certificate and shows the first domain name (for example abc.com).frontend Frontend bind *:443 ssl crt /etc/ssl/ ...
How HAProxy manages certificates on ip address?
In general, as soon as you use an integer or a string or any other literal, Python creates a new object in memory for you. It is guaranteed to have the same id for the lifetime of the object, that is, while its reference count is not zero. When you write something like: >>> id(1000) 140497411829680 Python creates the...
This question already has answers here: Why is the id of a Python class not unique when called quickly? (6 answers) Closed 6 years ago. I can understand the following definition: ...
Confused about Python’s id() [duplicate]
full documentation provided below linkMaven for use with GitHub Packagesto summarize:generate a new personal access token from the github settingsadd repository and token info in your settings.xmldeploy usingmvn deploy -Dregistry=https://maven.pkg.github.com/yourusername -Dtoken=yor_tokenShareFollowansweredJan 20, 2020...
How to push an artefact / Jar to maven.pkg.github.com ? Let's say I have a maven project, and I want to build and push this artefact to github package repository.
How to push an artefact to maven.pkg.github.com?
There is no direct link from the AWS console, but the service still active (https://aws.amazon.com/simpledb/)To manage your data you could give a try to theSdbNavigatorchrome extension.
Usually one can find amazon service using the search feature, but simpledb yields nothing.I know it's not an active project but has it disappeared completely?If not, how to find it in the console?
Where is amazon simpledb?
Ok, found, you need to specify a spark_uid at image build step.
It seems that on spark 3.0.0 when I do a spark submit with kubernetes it require kerberos, I use the same spark submit that was working great in 2.4.5 I get this error:Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties 20/07/04 08:17:51 INFO SparkKubernetesClientFactory: Auto-configuring K8...
How to launch spark 3.0.0 kubernetes workload without kerberos?
Sorry,I solved this problem by asking one of my friends.To invite an exist outside collaborator to a new repository when there is no seats left.You just need to invite him byhis githubNameinstead of his email address.
(I'm not a native speaker of English.Please forgive my terrible english.)I have a private organization on github like this:https://github.com/xxx-technologythis organization includes two repositories:repository A repository BI invited[email protected]as an outside collaborator torepository A. Succeed and ocupied the la...
github can't invite exist outside collaborator to another repository when there is no seats left
You have toconfigure a file source in syslog-ngthat reads the /var/log/audit/audit.log file, and include this source in a log statement. I can't see that in your config file.BTW, syslog-ng version 1.6 is ancient beyond words. syslog-ng 3.7 canparse auditd logs to extract information, so you might want to upgrade. You c...
Good day,I have SLES 10 with syslog-ng (syslog-ng-1.6.8-20.23.1) and I cannot get the proper configuration so the file /var/log/audit/audit.log is sent to the remote syslog server.I used tcpdump and I can see some details in the packets that are sent to the remote server, but I am not seeing anything with the audit fo...
How to send audit.log to remote server with syslog-ng
Hostheader is the address that the client is trying to reach, which is not what you want.Originheader will give you the source ip, but not a friendly service name, so to get that you would have to somehow map the IP back to a service, which is not simple to do since pods will typically get an new, unpredictable IP when...
I have two Node.js/Express services run on Azure/Kubernetes. Then I send HTTP request to Service1 which is forwarding the request to Service2. How Service2 knows that the request came from Service1?HTTP/POST/GET => Service1 => Service2console.log(request.headers.host) prints "Service2"I do not want to modify the reques...
how to get hostname/servicename from HTTP request?
You are correct that Linkerd does not provide its own ingress controller, instead pairing with whichever existing ingress controller you want. Linkerd's mTLS, authn, authz features are used for internal service-to-service / pod-to-pod communication in the cluster. So the ingress handles the first contact with out-of-cl...
I am newbie to service mesh and k8 in general.From my understanding Linkerd does not provide it's own ingress controller. In that case, in my understanding Linkerd does not have reverse-proxy in itself. However, it can still do authorization of the request. How is this possible? Is it the control plane responsible for ...
Linkerd authorization policy without ingress
Kubernetes lifecycle has following steps.Pod is set to the “Terminating” State and removed from the endpoints list of all ServicespreStop hook is executedSIGTERM signal is sent to the podKubernetes waits for a grace period, default is 30 secondsSIGKILL signal is sent to pod, and the pod is removedGrace period is what y...
Is there is a way to automatically delayallKubernetes pod deletion requests such that the endpoint deregistration is signaled, but the pod's SIGTERM is delayed by several seconds?It would be preferable, but not required, if the delay only affected pods with an Endpoint/Service.Background:It iswellestablishedthat some t...
Automatic Pod Deletion Delay in Kubernetes
Haven't found any way to reduce either Eclipse and Netbeans. The problem is that javas JVM is using significant amout of memory to hold the compiled class representation. For example code is first compiled with something like -O0 for C compilers and later compiled with much better optimization if this is a frequently e...
When using netbeans to edit a PHP project, the IDE can (over time) use 400+ MB of memory. Is there any way to turn off certain features or other tricks to reduce its memory usage?
How to reduce Netbeans' memory usage?
3 You should be able to accomplish this with Metric Math. Multiply by 1000000 FLOOR the result to get an integer then divide by 1000000 to get a floating point number again. FLOOR(1000000*(100*(1-(m1+m2/m3))))/1000000) Share Improve this answer ...
I'm building a metric for the success rate of my API gateway and I'm trying to get more that 1-2 decimal places. I want to make sure that less than 99.9999% are successful. (Ultimately to set an alarm), but I would like to show this detail in the dashboard. Is there some kind of value formatting syntax available. I ha...
AWS Cloudwatch Metrics - How to Format a Number in Dashboard Metric to more than two decimal places
Set a specific port in your router that is designated to route to your server address,So if your router real ip is a.b.c.d, you should set up that all communication to a.b.c.d:port# is being routed to your server local address. (a.b.c.d:port# --> serverIP)The settings for this can be achieved from your router configura...
I'm writing an application with both a desktop and a mobile app component. The desktop app is being written in c#, and I'd like to be able to open it up to act as a server for the mobile app (similar to what AirVideo does). How can I accomplish this without requiring the user to configure their firewall and/or router?I...
How to allow remote connections to my .net application?
As already pointed by others, it is not possible to setPodas theKindobject as the target resource for an HPA.Thedocument describes HPAas:The Horizontal Pod Autoscaler automatically scales the number of Pods in a replication controller, deployment, replica set or stateful set based on observed CPU utilization (or, with ...
apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: name: testingHPA spec: scaleTargetRef: apiVersion: apps/v1beta1 kind: Deployment name: my_app minReplicas: 3 maxReplicas: 5 targetCPUUtilizationPercentage: 85Above is the normal hpa.yaml structure, is it possible to use kind as a pod and ...
Can I autoscale Kind : Pod?
1 You can log your responses right before sending them to your mobile application. See chapter 2.3 You will have something like def your_method #do_something logger.info response_params respond_with response_params end Share Improve this answer ...
I have a Rails API which is currently used by a mobile app to perform database transactions. The API returns an JSON object and I'd like to be able to log all the responses that each mobile app request returns on my Rails Server. I've looked at lograge but they doesn't seem to have the ability to log responses from Ac...
How do I log responses from my Rails Controllers?
Thetypedefkeyword declares analiasfor an existing type.For exampletypedef int integral; integral i = 1;The linetypedef void (B::*PMF)(void*, size_t);declares an aliasPMFfor a type:pointer to function (that is taking a pointer tovoidandsize_t) returningvoid.See this link for a detailed explanation of how to interpret th...
We are reading Herb Sutter's Exceptional C++ book as part of our class assignments.I have a question in understanding what the typedef is actually doing and deciphering how it is constructed: Item 36:If would be a great help for someone to walk though the logic of the typefef.class B { public: virtual ~B(); voi...
Exceptional C++ Item 36
On Azure DevOps side, after you delete your organization, it's disabled but available for 28 days. If you change your mind during this time, you can recover your organization. After 28 days, your organization and data are permanently deleted. Prerequisites An organization deleted within the last 28 days. Organization...
I have create an "Azure DevOps organization" in Azure portal. I am using this service to store my source code (git repositories). I am wondering something: What happens if i accidentally delete my azure devops organization in Azure portal ? My account may be hacked too. Are there automatic backups in azure ? This ques...
Is there a way to backup all my azure services datas
Classifiers only analyze the data within the file, not the filename itself. What you want to do is not possible today. If you can change the path where the files land, you could add the date as another partition:s3://my-bucket/id=10001/source=fromage/timestamp=2017-10-10/data-file-2017-10-10.jsonShareFollowansweredDec ...
So what I am trying to do is to crawl data on S3 bucket with AWS Glue. Data stored as nested json and path looks like this:s3://my-bucket/some_id/some_subfolder/datetime.jsonWhen running default crawler (no custom classifiers) it does partition it based on path and deserializes json as expected, however, I would like t...
AWS Glue custom crawler based on file name
As the counter and the object share the same allocation, they also share the same deallocation. The counter has to persist until the last shared_ptr and weak_ptr go away. If you have a large object (or many small objects) with long-lasting weak_ptrs, this can cause memory contention if you allocate the shared_ptrs vi...
From the research I have done, it sounds like std::make_shared is the preferred way of constructing a std::shared_ptr. Specifically because: It performs only one memory allocation, compared with using new, which performs at least two. If the ctor passed to make_shared throws, then it won't leak, as it will with new...
Is there any situation in which I wouldn't use std::make_shared?
Have you opened the endpoint on the Azure portal. By default the machine is firewalled from Azure as well...not just your VM.https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-set-up-endpoints/
I have self-hosted a WCF service on base adressnew Uri("http://" + Environment.MachineName + ":1235/myService")on an Azure Virtual Machine. I have printed this address and I get it ashttp://TRIALVM:1235/IRChatbotService. The DNS name of my virtual machine istrialvm.cloudapp.net.As I have hosted this service on port 123...
Unable to access a self-hosted WCF service on azure virtual machine
I would recommend you to check what exactly you have in_optionstable in the fieldssiteurlhomeYou should have therehttps://sub.domain-name.comalso you need to check yourwp-config.php. There might be rules added regardingsiteurlandhomeusing incorrect protocol.
I have two wordpress sites running in dedicated server using nginx. I have ssl certificate for *.domain-name.com and I face problems with one site (sub.domain-name.com) running through ssl. I am using really simple ssl plugin. After enabling ssl I can't login to admin area and no errors are shown in logs or console, th...
Can't login after using ssl in wordpress
The issue was that the server was running on 127.0.0.1 when it should have been running on 0.0.0.0. I changed the CMD line in the Dockerfile from CMD ["python", "manage.py", "runserver", "8000"] to CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] and it now works.
I'm attempting to access my django app running within Docker on my windows machine. I'm using docker-machine. I've been taking a crack at this for hours now. Here's my Dockerfile for my django app: FROM python:3.4-slim RUN apt-get update && apt-get install -y \ gcc \ gettext \ vim \ cu...
Docker-machine Port Forwarding on Windows not working
Is it limiting the number of concurrent instances you can run, or the total instances you ever launched?EC2 Limits are per number of concurrent instances you can launch.I'd suggest to check your current EC2 limits using the AWS Management Console.Open the Amazon EC2 console athttps://console.aws.amazon.com/ec2/.From th...
I used spot instances for the past month, launching and terminating instances. Currently, I've no instances running on AWS (all spot instance terminated). But when I try to launch a new spot instance, it tells me that "Max spot instance count exceeded".I've read the documentation on spot instance limits. However, I'm c...
AWS Spot Instance Limit
0 You can be potentially impacted by this issue; there are 2 possible workarounds there (per ticket): Disable compressed Oops (-XX:-UseCompressedOops) with slight performance penalty. This will instruct JVM to run without the Compressed Oops feature and it would not try to...
This question already has an answer here: Why the operating system says it can't allocate memory to jvm when it has enough memory (1 answer) Closed 3 years ago. I have a Ubuntu ser...
JVM is not recognizing my available memory [duplicate]
I recommend that you just use NSWindowController or a custom subclass. Your subclass can have a view outlet and a KVO-compliant representedObject property. That should suffice for a 10.4-compatible replacement.
I am working on a bundle code base—not an app—where development started on 10.4, and is required to run on 10.4, but works all the way up to 10.8. It loads its views from nib files manually and I only just recently realised that there is a substantial memory leak because the nibs utilise bindings and bind against the ...
NSViewController on Mac OS X 10.4
As far as I know gist doesn't provide an execution environment, but you could easily paste this injsfiddle.ShareFollowansweredMay 23, 2012 at 9:33Manu ClementzManu Clementz1,7971212 silver badges1919 bronze badges2I just ended up running it locally... was easier than jsfiddle. But thanks for clarifying that gist doesn'...
I'm sure I'm being dim, but is it possible to view the rendered output of a gist?This is the gist I'm interested in:https://gist.github.com/844752/420cc52eb4910fe8fa2bec9e13daab18b6230503Where can I see how it actually renders?
View rendered output of a gist?
Used by information does not show up for pyYify, because no other repository mentions pyYify as a requirement. As you can see by doing a search:https://github.com/search?q=pyYify&type=Code
Here's my python library :https://github.com/nateshmbhat/pyYifyHere's another of my libraries : webbothttps://github.com/nateshmbhat/webbotWhilewebbotshowsused by repositoriesinformation on the github page , thepyYifylibrary doesn't show ? How to fix this ?
Why doesn't my python package on github show the used by information?
OK, there will be lots of opinions on this one. Do not automatically install updates, even security ones. One day you will find all your systems down and you will be scrambling to figure out why. Then management will be scrambling to figure out the cost of an enterprise system on cloud vendor XYZ having crashed. No up...
I've recently joined a company as a DevOps Engineer and one of my responsibilities is provisioning infrastructure in OpsWorks (EC2 instances behind an ELB talking to an Aurora DB). I've been asked to audit the current solution with respect to applying updates. After reading a few answers it strikes me that if I want t...
EC2 Automatically Install Updates
i have fixed the issue. It was firewall issue. i ransystemctl disable firewalldcommand and rebooted myCentOS-7(Docker Server). now connection working.ShareFollowansweredMar 26, 2019 at 4:01user4948798user49487981,99655 gold badges4747 silver badges103103 bronze badgesAdd a comment|
My Environment details as follows,Jenkins Master Server Details:-Jenkins Master Host OS – CentOS – 7.6 Jenkins Version - 2.164.1 Jenkins Deployed on Apache Tomcat. Jenkins Docker Plugin Version – 1.1.6Docker Server Details:-Docker Host OS – CentOS – 7.6 Docker Version - 18.09.3, build 774a1f4Problem:Trying to configure...
Jenkins Docker Plugin cannot connect to Docker server host url
1 What you need is a docker secret, where the docker-engine holds the secret and it's injecting it in the containers. Unfortunately, this concept is related to docker swarm and can not be used on single host. Similar to the docker secret, docker-compose can also manage the ...
In my current workflow, I leave my .env files out of my commits as they contain passwords/secrets etc. I'm going to start using Docker containers which causes an issue with the .env file: I need to push the .env file as well in order for the container to be created. However, since the project is public, anybody woul...
How to keep Laravel .env file secure in a public github repo
Is it legal to modify github library code according to my use; Yes, As long as you are inline with the licence and provide proper attribution to the original author. If yes then how to modify library code in android studio You cannot modify the original library if you add it as a dependency. To modify you can do o...
In my application I want to use github library:-https://github.com/greenfrvr/hashtag-view I know one way to use it is by adding dependencies in gradle file as :- dependencies { compile 'com.github.greenfrvr:hashtag-view:1.2.1' } This way I am able to use library but I want to make some changes to library code and mod...
Android : Github library using in Android Studio
1 OK - Got it. I had to configure the publishing source for gh-pages. Note that for typedoc we also need to add a .nojekyll file, so that gh-pages does not ignore files staring with _. See my .travis.yml file for how I did this. Share Improve this answer ...
I'm using travis to deploy built content into the projects corresponding gh-pages branch. This is the project: https://github.com/fireflysemantics/is I see that the doc folder that typedoc generated is in the gh-pages branch, however when I go to: https://fireflysemantics.github.io/is/doc/index.html I get a 404, but ...
gh-pages content not rendering at corresponding URL?
To pass the output of lookup activity to an execute pipeline, you need to define a parameter in execute pipeline, and use '@activity('LookupTableList').output.value' to set the value of the pipeline parameter, referencehttps://learn.microsoft.com/en-us/azure/data-factory/tutorial-bulk-copy-portal#create-pipelinesto see...
I have a Lookup Activity in a pipeline. Sequential to it i have multiple Execute Pipeline Activities. I want to use that lookup within the execute pipeline activities. Is that possible? Or re-creating the lookup in each the execute pipeline activity is the only option?I'm using ADF v2.
Use lookup from one Azure DF Pipeline into another Pipeline
<div class="s-prose js-post-body" itemprop="text"> <p>From Java 9, the JDWP socket connector accept only local connections by default. See: <a href="http://www.oracle.com/technetwork/java/javase/9-notes-3745703.html#JDK-8041435" rel="noreferrer">http://www.oracle.com/technetwork/java/javase/9-notes-3745703.html#JDK-804...
<div class="s-prose js-post-body" itemprop="text"> <p>I have a Dockerfile with this content:</p> <pre><code>FROM openjdk:9 WORKDIR /project ADD . /project EXPOSE 5005 </code></pre> <p>My docker-compose.yml looks like this:</p> <pre><code>version: "3.2" services: some-project: build: . ports: - target...
Remote debugging Java 9 in a docker container from IntelliJ IDEA
There are a lot of ways to get data into redshift. But even inside amazon there's only one way getting data out of redshift:unload to s3https://docs.aws.amazon.com/redshift/latest/dg/r_UNLOAD.htmlOn the other hand microsoft appears to provide a connector For migrating:https://learn.microsoft.com/en-us/azure/data-factor...
I want to migrate from Amazon Redshift to Microsoft Azure. Is there an easy way of doing this copy?
Is there an easy way of migrating from Amazon Redshift to Microsoft Azure Data Warehouse?