[ Psychology ] Open Question : Why homeless people just don't find a job and stop being pathetic useless person?

[ Psychology ] Open Question : Why homeless people just don't find a job and stop being pathetic useless person?

Como ejecutar cron job cada 4 minutos 30 segundos

necesito ejecutar un cron job cada 4 minutos 30 segundos.

Tengo el siguiente codigo pero no estoy seguro de que funcione de la mejor manera.

* * * * * ( sleep 270; /file.php )

Has anyone satisfied the UK fiancee/spouse visa financial requirements by working their foreign job remotely as someone self-employed in the UK?

I’m a UK citizen with a Japanese fiancee. We plan to get married in the UK, so we want to apply for his entry under the fiancee visa. However, we don’t meet the financial requirements yet — I’m searching for, but haven’t yet secured, a UK-based job. That said, I have a Japanese job that meets the income requirement and would be willing for me to work remotely.

I spoke to a Japanese visa firm who suggested it would be possible to count J-income if

  1. I paid tax on the income in the UK.
  2. I became self-employed in the UK and submitted that documentation.

However, it seems like the forms for the self-employed look to a past year of s.e. income, which I don’t have.

Tldr; Has anyone satisfied the UK fiancee/spouse visa financial requirements by working their foreign job remotely as someone self-employed in the UK?

If Trump was too distracted by his impeachment to focus on coronavirus, doesn’t that prove that he’s not up to the job?

Congress was too distracted by it.  The Democrats were the ones holding up the stimulus package.  

Now they are at it again, proposing 2000 page bills chock full of pork. 

Where exactly were all of the warnings by the Democrats how dangerous this would be???  They were in Chinatown saying everyone should come out and eat at Chinatown. 

They were against stopping flights from China and Europe. Trump was the one leading the charge and you were five steps behind the whole time, THEN you want to rewrite history and act like you were ahead??? 

selinux : root as sysadm_u not able to start at job

I have a system where root user is sysadm_u. When the user tries to start at job, get this error “execle: couldn’t get security context for user root”.

After going through the source code of at and other selinux docs, the issue seems to be the sysadm_u is not able to find any reachable contexts.

at is failing here:
retval=get_default_context_with_level(seuser, level, NULL, &user_context);

I am able to see the reachable contexts using the below command and validate this.

# selinuxconlist -l s0-s0:c0.c1023 sysadm_u system_u:system_r:crond_t:s0-s0:c0.c1023
#

=> No output.

Below is my atd process context:

# ps -efZ | grep atd
# system_u:system_r:crond_t:s0-s0:c0.c1023 root 12735 1  0 01:10 ?       00:00:00 /usr/sbin/atd -f

Test1)

But if i use -l s0 instead of -l s0-s0:c0.c1023 in the above command, I get the below result.

# selinuxconlist -l s0 sysadm_u system_u:system_r:crond_t:s0-s0:c0.c1023
sysadm_u:sysadm_r:sysadm_t:s0
sysadm_u:system_r:system_cronjob_t:s0
#

What is difference between the above two ? Why would the reachable contexts change if I add more range ?

sysadm_u has roles sysadm_r and system_r

# semanage user -l

                Labeling   MLS/       MLS/
SELinux User    Prefix     MCS Level  MCS Range                      SELinux Roles

root            user       s0         s0-s0:c0.c1023                 sysadm_r system_r
sysadm_u        user       s0         s0-s0:c0.c1023                 sysadm_r system_r
system_u        user       s0         s0-s0:c0.c1023                 system_r
unconfined_u    user       s0         s0-s0:c0.c1023                 system_r unconfined_r

Test 2) It also gives reachable contexts if i remove the system_r role from sysadm_u

semanage user -l

                Labeling   MLS/       MLS/
SELinux User    Prefix     MCS Level  MCS Range                      SELinux Roles
sysadm_u        user       s0         s0-s0:c0.c1023                 sysadm_r

# selinuxconlist -l s0-s0:c0.c1023 sysadm_u system_u:system_r:crond_t:s0-s0:c0.c1023
# sysadm_u:sysadm_r:sysadm_t:s0-s0:c0.c1023
# 

But the crond_t context is missing here.
How can i make at works with sysadm_u. Any help/suggestions will be great.

Sending and receiving data from a Kubernetes job

I am working on this containerized API where, in two steps (an asynchronous and a synchronous), the user can interact with the output generated by the first step via a front-end service.

I didn't really know if I should post it here or on SO, but since the question is more about design than implementation, I decided to post it here, let me know if you think 39; it is more suitable for SO.

The flow is as follows:

  1. The user has requested to perform an asynchronous job for which he has received a unique identifier.

The work produces a model that the user wishes to test:

  1. They send a POST request to a front-end service with the unique identifier and the personalized data (json) with which they wish to test the model.

  2. The front office starts a Kubernetes job.

  3. The Init container requests the model.

  4. The main container loads the model.

  5. The front-end service somehow sends a calculation request with the json supplied by the user to the main container.

  6. The response is passed to the user.

  7. The pod stays in place for a while so that when similar requests for the same model are received, there is no need to spin new pods every time.

  8. After a while, the pod stops, finishing the job.

I'm having problems with step 6 (and by extension step 8). As far as I know, pods created by a job cannot be connected by a service. And even if it is possible, several requests for different models can occur simultaneously, so the service must be able to dynamically differentiate the pods.

The first iteration of this project was to let the main container be able to dynamically load new models, but after review it was decided that this was not desirable now, in order to load a new model the container should be restarted where the Init Container retrieves the correct data.

My first thought was to let the main job send a data recovery request, but this creates several problems:
1. The front-end service must store the json request in a database even if it is read only once because the main request can be routed to another front-end module.
2. How can the job ask for new data? (step 8)
3. How are the results sent to the user?

The second thought was to skip steps 8 and 9 and let the job finish and let the front end read the job status and when finished, read the newspapers. At least, that's how the example in Job's documentation does it. It would mean, however, that the job logs must be reserved for release, which appears to be a misconception.

We can however rely on that and instead of writing to the newspapers, writing to the database. This shares problem 1 of my first idea in that the database will contain read-only data, but so far this seems to be the only workable solution.

What is your thought? Is this the way to go or maybe you have a whole different way of encapsulating this behavior?

Jobs – GET 50 BMF QUICK AND EASY TASK (LIMITED JOB) | NewProxyLists

FOR THE UNITED STATES, Canada, Australia, the United Kingdom, France and Brazil MEMBERS ONLY
I NEED PEOPLE TO REGISTER AND SET UP CHROME EXTENTION (COMPUTER NECESSARY)

NECESSARY SCREEN CAPTURE FOR CHROME EXTENSION AND YOUR USER NAME

Ultimate professional Excel data entry job within 3 hours for $ 1

ultimate professional Excel data entry job within 3 hours

Data entry / Excel data entry / Data mining / Data collection / Copy and paste

Excel data entry services with 100% accuracy
Do you need a Loyal Data entry expert for your Data entry, Excel data entry, Data mining, Data collection, copy and paste?
Then I can help you.
I am Pradeep Mali a professional Data entry expert.

I can help you with any type of Jobs related to data entry.

ServI offer:

· Data entry

· Data mining

· Excel data entry

· Copy Paste work

· Quickly Data entry

· Active data entry

· Targeted data entry

· Type in Excel or Word

Why should you order here?

· Quality assurance

· Quick delivery

· Quick response

· Confidentiality of data entry

· Loyal / faithful worker

*** Please send a message before ordering and full work instructions to do ***

thank you,

Pradeep Mali.

.

How should I work to get a good internship or a good job in large companies?

I already want advice from experts and people working in this field. I want to continue my career in UI / UX and I would like to know what steps to take to get an internship or even a job in a good company so that I can start to prepare. I am currently doing my 3rd year of B.tech in CSE and I have had work experience as a graphic designer for almost 3 years now.

clean code – C # | How to test a unit timer (in a daily job planner)?

I wrote this course:

using System;
using System.Threading;
using System.Threading.Tasks;

    public interface IJobScheduler {
        void RunDaily(Task task, int hour, int minutes );
    }

    public class JobScheduler : IJobScheduler, IDisposable
    {
        Timer timer;

        /// 
        /// Run the provided task every day at the defined time.
        /// 
        /// Action to execute
        /// At what time (hour) the task have to be executed. LOCAL time.
        /// At what time (minutes) the task have to be executed. LOCAL time.
        public void RunDaily(Task task, int hour, int minutes)
        {
            var todayRun = DateTime.Today.Add(new TimeSpan(hour, minutes, 0));

            var timeToGo = todayRun > DateTime.Now ?
                (todayRun - DateTime.Now) :          // run today
                todayRun.AddDays(1) - DateTime.Now;  // run tomorrow

            timer = new Timer(x => { if (isEnabled) task.RunSynchronously(); },
                state: null,
                dueTime: (int)timeToGo.TotalMilliseconds,
                period: 24 * 60 * 60 * 1000 /* 24h */);
        }

        public void Dispose()
        {
            try { timer?.Dispose(); } catch { }
        }
    }

Now here is the initial test that I wrote:

        (Test, Category("long_test"))
        public void TaskScheduler_RunDaily__should__execute_at_the_specified_time() {

            // scheduler has a precision of 1 minute so...
            var runAt = DateTime.Now.AddMinutes(1);

            var runCounter = 0;
            Task task = new Task(
                () => runCounter++
                );

            int hours = runAt.Hour;
            int minutes = runAt.Minute;
            var scheduler = new JobScheduler();
            scheduler.RunDaily(task, hours, minutes);

            // scheduler has a precision of 1 minute so...
            Thread.Sleep(TimeSpan.FromSeconds(60+2));

            runCounter.Should().Be(1);
        }

It can be improved to exit as soon as the task is executed or, by introducing seconds as a parameter (with zero by default) I may be able to reduce the test time to 1 or 2 seconds.

But my real question is:
How can I verify that the programmer has a timer set to 24 hours (= it will execute the task after 24 hours)?

I started thinking about checking the internal timer …

        (Test)
        public void TaskScheduler_RunDaily__should__have_an_internal_timer_et_to_24_hours()
        {
            // scheduler has precision of 1 minute so...
            var runAt = DateTime.Now.AddMinutes(1);

            var runCounter = 0;
            Task task = new Task(
                () => runCounter++
                );

            int hours = runAt.Hour;
            int minutes = runAt.Minute;
            var scheduler = new JobScheduler();
            scheduler.RunDaily(task, hours, minutes);

            // use reflection to get the check internal Timer
            var timerField = typeof(JobScheduler).GetField("timer",
                System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);

            if (timerField == null) Assert.Fail("Cannot read the Timer field");

            var timer = timerField.As();

            // what can I test here ?  
            timer. Should().Be(true);           
            timer. Should().Be(24_HOURS);
        }

and I think it is okay to use reflection and check an internal implementation of MY code, but it is not acceptable to check the internal implementation of Timer himself.

The real behavior to test here is the fact that the task runs after 24 hours.
I can think of "exposing" these 24 hours so to make fun of me but I really don't like the idea: DailyRun means 24 hours, why should I expose this value as a parameter.
The other type of rule I like to follow is: "Don't make the code ugly just because it has to be testable, prefer the simplicity."
To be clear, the RunDaily The method is 10 lines of code and it only gets the necessary input, I don't want to change it because there is no practical way to test it as it is.