usa – Can everyone with my passport data see my American I94?

When you go to the I-94 website, you have to agree to a warning:

By accessing this website, you understand and acknowledge that:

You are declaring under penalty of perjury pursuant to 28 U.S. Code §
1746 that you: (1) are only seeking records about yourself, (2) are
seeking records about someone for whom you are the legal guardian, or
(3) you have the consent of the person whose records you are seeking.
You are not authorized to access this website to retrieve records of
another person unless you are the person’s legal guardian or you have
the person’s consent.

Unauthorized or improper use or access of this website, including the unauthorized or improper modification, destruction, or disclosure
of any information or data contained herein, is expressly prohibited,
and may result in civil and criminal penalties.

The access and use of this website is subject to monitoring by DHS for administrative, law enforcement, or criminal investigative
purposes, inquiries into alleged wrongdoing or misuse, and to ensure
proper performance of applicable security features and procedures. DHS
may monitor the access or use of this website without further notice.
You may not process classified national security information on this

So at least on paper, it violates US law for someone else to look up your information unless they have your consent. But practically, there’s not a deeply strong mechanism to enforce that, and people or entities outside of the US might not care that they’re breaking US law. I wouldn’t be surprised if there was some monitoring in place to detect bulk queries, brute force attacks, and abuse of the system, but it seems unlikely a rogue employer or someone else performing a single lookup would be caught and face consequences for that even if it is illegal.

If you click through to the privacy notice for the website, it does say that “CBP will retain the information submitted when attempting to access records through this website for 3 months for audit and system performance purposes,” so there’s at least a theoretical possibility they could identify some types of misuse from those logs. If you think your records have been misused, you could conceivably try requesting a copy of those logs that pertain to you; I have no idea if they’ll actually give them to you (or refuse because you’re not a citizen/permanent resident, or perhaps misunderstand your request and just send you your I-94) or do so in a timely fashion or whether they’d be of any use.

So yes, anyone with the required information from your passport can see your travel history (or at least the potentially incomplete version displayed by the website).

Curve Fitting Data using Polynomial

I have this Data set into Mathematica as such:

data = {{1980, 4716.71636}, {1981, 4530.36984}, {1982, 4301.97069}, {1983, 4335.91656}, {1984, 4468.26205}, {1985, 4484.33818}, {1986, 4487.85587}, {1987, 4680.83405}, {1988, 4885.5905}, {1989, 4948.02116}, {1990, 5121.17944}, {1991,  5071.56391}, {1992, 5174.6706}, {1993, 5281.38661}, {1994, 5375.0338}, {1995, 5436.69799}, {1996, 5625.04188}, {1997, 5701.92092}, {1998, 5749.89306}, {1999, 5829.51995}, {2000, 5997.29891}, {2001, 5899.85548}, {2002, 5942.42141}, {2003, 5991.19093}, {2004, 6105.44411}, {2005, 6130.55242}, {2006, 6050.3846}, {2007, 6127.88822}, {2008, 5928.25633},{2009,5493.54791}, {2010, 5700.10834}, {2011, 5572.58478}, {2012, 5371.77717}, {2013, 5522.90837}, {2014, 5572.10631}, {2015, 5422.96568}, {2016, 5306.66246}, {2017, 5270.74853}, {2018, 5416.27788}}

But do not know how to code to curve fit it in the program. I have read multiple tutorials and watched videos on curve fitting polynomial data but it is either about creating the dataset from an already established equation or the instructions just flat out confused me. I have it curve fitted on excel with a nasty equation that starts with an x^6 and numbers with awful decimals. The goal is to get a cleaner equation how can I do this?

I have the data graphed as such:

google apps script – How to automatically set date in a cell when a different cell value is changed by a formula from data on another sheet?

I currently have a column, e.g. ColB, containing SUMIF functions with its data range from other sheets and a column, e.g. ColC, with dates that I want to automatically update to the last date ColB’s value were changed. Here’s a picture to illustrate what I mean:

From searching around, I found the following Google Apps Scripts but they only seem to work if the change to ColB’s cells is a direct edit as opposed to its value changing from the SUMIF function recalculating new data:

Example Script 1:

function onEdit(e) {
  if ((2, 5, 8, 11).indexOf(e.range.columnStart) != -1) {
    e.range.offset(0, 1).setValue(new Date());

Example Script 2:

function onEdit() {
 var s = SpreadsheetApp.getActiveSheet();
 if( s.getName() == "Sheet1" ) { //checks that we're on the correct sheet
   var r = s.getActiveCell();
   if( r.getColumn() == 13 ) { //checks the column
     var nextCell = r.offset(0, 1);
     if( nextCell.getValue() === '' ) //is empty?
       var time = new Date();
       time = Utilities.formatDate(time, "GMT", "HH:mm:ss");

Is there a Google Apps script that can execute what I want?

rest – Should I return user data in an authentication endpoint using JWT?


End points are functions. From this perspective it doesn’t matter what they do as long as the client is aware that this is what will happen, and is happy to deal with the output/outcomes.

So if you write the only client and you have a sequence of six operations that are called in a row, it might make sense to collapse them down into a single call that does it all.

But if you don’t write the only client, then there is a good chance that such complex endpoints will make life harder for them. It would be like trying to get a paper and having to verify that you have medical insurance. Its better to have smaller concise operations to allow these other clients to pick and choose how and when.

A middle ground is to offer a small variety of common chains by opt in.

  • /auth -> just the JWT token
  • /auth?include=user -> JWT token + user details please

As for REST, then yes it matters a lot.

The two graces of REST are that the server doesn’t have to keep connection state, and that intermediaries can cache the result to distribute to their audience to reduce overall load on the server.

JWT tokens don’t fit in this model. You don’t want them cached, you don’t want them shared.

Other data though might be perfectly fine to cache. Perhaps not confidential user data, but if those details were public user information it would be fine.

Mixing the two types eliminates one of the benefits from a REST system. Not the end of the world, but if you are trying to get the scalability it is an anti-pattern.

python – I am trying to get pandas to populate a cell using data from another cell in the same row and a for loop

import pandas as pd
import csv
from datetime import datetime
import random

pf = pd.read_csv(path, delimiter=',')  # for tests with original file
df = pd.read_csv('new_log.csv', delimiter=',')

for index, row in df.iterrows(): # iterate through rows in dataframe
    i = random.randint(0, 9) # select a random number for each row( This doesn't seem to do what I thought it would)
    if i > 6:  #  if the random number is high enough perform the operation
        row("IMC") = row("Block") * random.triangular(0, 1, 0)  # I want a column that already exists "IMC" to be populated by the value in the column "Block" multiplied by a random number
    else:   # if the random number is less than specified
        row("IMC") = 0

df(“IMC”) = row(“Block”) * random.triangular(0, 1, 0) gives me almost what I want except it always provides a value greater than 0. I could round, but a bool would get me closer to what I want, which is why I am trying the for loop.






My first problem is that the random number seems to only be chosen once instead of being chosen for each row, and I don’t really understand why.

My second problem is IMC has the value NaN. I tried writing it as df(row(IMC)) which gives me a separate NaN column with values in it.

I really want to know why the >i< is only being chosen once, instead of for each row. I would also like to know why I am not able to write any values into the dataframe as I have written it above.

I don’t know enough terminology to efficiently use the manual without ending up down a lot of irrelevant rabbit holes, so sorry for the basic level of the question.

dotnet core generate migration script with data seed

I’m in .Net Core 3.1 C#.
I would like to deploy my application to a IIS test server, I can’t use CLI on this server so I generated my SQL script with this command :
dotnet ef migrations script

The produced SQL file contains only the database schema, not any seed data, despite in local when I run the commande
My database is initialized with seed data…

How to generate SQL script with seed data ?


I want to write a proposal on one of the MONGODB issues! I chose a problem that it uses high memory for data storage., is that correct?

Stack Exchange Network

Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

theming – how to creat malti step form step from data base?

i am new in drupal 7 and i am working on multi step form. basic knowledge of form database 10 to 30 question store which i want to display on the front side on first sidebar step 1 first question and answer step 2 second question and it answers like N number of questions. so i have created a simple form block now to convert form to multi step form but i don’t know how to achieve this? please correct me if I am wrong
expected output.

  1. What is your favorite food ?

burger    pizza    hotdog

previous next

  1. What is your favorite color ?

green   red   yellow

  previous next

  1. What is your hobby ?

    swim play driving

    previous next