#getitem
#TodayILearned that:
Get-Item SomeFile.txt -Stream zone.Identifier
shows whether Windows see the file as having been downloaded from the internet. If that returns anything other than an error, it’s from th... https://mattypenny.micro.blog/2026/09/29/todayilearned-that-getitem-somefiletxt-stream.html
September 29, 2026 at 3:05 PM
One row feature flag table is fine in dynamodb. hardcode the key and GetItem it, no Query, no Scan. under 4kb thats half a read unit, the cheapest read there is https://dynotable.com/learn/dynamodb-singleton-items?utm_source=bluesky&utm_medium=social&utm_campaign=drip&utm_content=diagram
September 24, 2026 at 8:03 PM
the first xslt file was about 30,000 lines long and mostly consisted of a case statement inside a 'getItem' javascript function, the other xslt file was similar but with a wholly different naming convention and getItem function
September 19, 2026 at 10:39 PM
That is cleaner than keeping a fixture alive. The absent-key GetItem becomes a low-maintenance probe for auth, region and table reachability, while the empty result is still the expected application state. Good distinction.
September 13, 2026 at 9:12 AM
You dont need a known key for it. GetItem on a key that isnt there comes back with no Item and still bills read capacity, so one call proves auth, region and table state. no fixture to keep alive
September 12, 2026 at 2:17 PM
🦖 SVGPointList: getItem() method 🦖

https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/getItem

The getItem() method of the SVGPointList interface gets one item from the list at the specified index.

#webdev
SVGPointList: getItem() method
The getItem() method of the SVGPointList interface gets one item from the list at the specified index.
developer.mozilla.org
September 5, 2026 at 11:43 AM
UWSCのgetitemでITM_ACCCLKを指定した場合、ロールがウィンドウかクライアントかつフォーカス可能であればクリック可能アイテムに含めるみたいなとこある
May 23, 2025 at 6:11 AM
IT IS STORED AS A STRING I NEEDED TO USE IT WHICH APPARENTLY MEANT WRAPPING NUMBER() AROUND THE GETITEM
October 26, 2025 at 8:45 AM
I'm not from a database background, but I chose NoSQL ( #AWS DynamoDB ) for my projects. Recently, I optimized my query speed without realizing it at first, just by changing how I used Boto3 API.
Small change, big impact:
Speed: GetItem > Query > Scan
+ switching to low-level #API.
How fast data can be retrieved from #AWS DynamoDB using Boto3 API.

Client API (low-level) gives better performance but returns raw data. Resource API (high-level) is easier to use and gives cleaner data, but it's slower.

Right now, speed matters more to me than convenience.
May 1, 2025 at 2:56 PM
Details of how to add an ODATA date filter to a @SharePoint list in @MicrosoftFlow http://ow.ly/jJM330bf6YY
MSFlow filter SharePoint list in GetItems action by date ...
I was attempting to create a flow that executed a GetItem...
ow.ly
December 4, 2024 at 2:29 PM
Idée pour conclure les activités POO avec les plus avancés : la liste Python circulaire (les listes (chaînées) n'auront pas été préalablement traitées). Florilège de méthodes spéciales, introduction de getitem (avec pour effet de bord de rendre itérable l'objet -> l'interdire avec iter et ... 1/2
July 31, 2025 at 9:57 AM
Update v2.5 for Petite Equipment has been released!

ALL vanilla assets have been replaced, including icon textures and GetItem assets! You may now freely redistribute!

Get it here!: gamebanana.com/mods/460172

This mod is for Ship of Harkinian; a PC port of The Legend of Zelda: Ocarina of Time.
August 24, 2023 at 6:34 PM
JSON使える人はクライアントでGUI用意しなくてもconsoleでStorage: getItem() とか使って設定保存・読み込みできる人なのでは
May 14, 2024 at 1:25 AM
💡 Summary by GPT:

本記事は、DynamoDBのクエリ特性や適性についてまとめられており、具体的にはDynamoDBのAPIでの一括削除やマスターデータの全取得、ソート順の固定などに関する問題点が説明されています。DynamoDBのクエリにはGetItem、Query、Scanの3つの方法があり、それぞれの違いや使い方が説明されています。また、DynamoDBのフィルタはクエリ実行後に適用されるため、ページネーションの実装には注意が必要です。さらに、DynamoDBの削除や更新操作においてはConditionExpressionを使用する必要があります。 (1/2)
January 2, 2024 at 5:03 AM
Amazon DynamoDB Accelerator now supports AWS PrivateLink
Amazon DynamoDB Accelerator (DAX) now supports AWS PrivateLink, enabling you to securely access DAX management APIs such as CreateCluster, DescribeClusters, and DeleteCluster over private IP addresses within your virtual private cloud (VPC). DAX clusters already run inside your VPC, and all data plane operations like GetItem and Query are handled privately within the VPC. With this launch, you can now perform cluster management operations privately, without connecting to the public regional endpoint. With AWS PrivateLink, you can simplify private network connectivity between virtual private clouds (VPCs), DAX, and your on-premises data centers using interface VPC endpoints and private IP addresses. It helps you meet compliance regulations and eliminates the need to use public IP addresses, configure firewall rules, or configure an Internet gateway to access DAX from your on-premises data centers. AWS PrivateLink for DAX is available in all Regions where DAX is available today. For information about DAX Regional availability, see the “Service endpoints” section in Amazon DynamoDB endpoints and quotas. There is an additional cost to use the feature. Please see AWS PrivateLink pricing for more details. To get started with DAX and PrivateLink, see AWS PrivateLink for DAX.
dlvr.it
October 31, 2025 at 7:11 PM
Just noticed that sadly, the proposal to add a “default” keyword to attrgetter(), itemgetter() and getitem() has been rejected: peps.python.org/pep-0769/

It’s part of the list of things that makes manipulating containers annoying. Like not having default on list.get(), or missing ? and ??.
PEP 769 – Add a ‘default’ keyword argument to ‘attrgetter’, ‘itemgetter’ and ‘getitem’ | peps.python.org
This proposal aims to enhance the operator module by adding a default keyword argument to the attrgetter, itemgetter and getitem functions. This addition would allow these functions to return a specif...
peps.python.org
September 1, 2025 at 9:31 AM
datasetのgetitem内でtokenizeするやつ、multiprocessとの相性が悪い?せいかうまくいかないことが多くて諦めちゃった
LLM,VLMのコード見ててもpreprocessでtokenizeしておくものも全然あるっぽい
April 29, 2024 at 2:16 AM
Is it possible to get multiple rows at once via Streaming?
To stream a dataset where each **getitem** call returns the current row and the n previous rows, you can create a custom PyTorch Dataset class (or use similar logic in another framework). Here’s a minimal, streaming-compatible pattern without loading everything into memory. ⸻ Goal: For a given index i, return: [rows[i - n], …, rows[i - 1], rows[i]] ⸻ Key Design Elements: • Use a buffer to store the most recent n rows. • Stream data line by line (e.g. from disk or a file-like iterator). • Keep track of line positions for seek-style recall (if file-based). ⸻ Example: Custom PyTorch Dataset (streaming from file) import torch from torch.utils.data import Dataset from collections import deque class ContextWindowDataset(Dataset): def **init**(self, filepath, n_previous): self.filepath = filepath self.n = n_previous self.line_offsets = # Precompute line start byte positions with open(filepath, 'r') as f: offset = 0 for line in f: self.line_offsets.append(offset) offset += len(line) self.total_lines = len(self.line_offsets) def __len__(self): return self.total_lines def __getitem__(self, index): if index < self.n: raise IndexError(f"Index {index} too small for {self.n} previous rows") result = [] with open(self.filepath, 'r') as f: for i in range(index - self.n, index + 1): f.seek(self.line_offsets[i]) line = f.readline().strip() result.append(line) return result ⸻ Example Usage: ds = ContextWindowDataset(“data.csv”, n_previous=3) print(ds[5]) # Returns [row 2, row 3, row 4, row 5] ⸻ Notes: • This works with streamed data from disk. • It avoids loading the full dataset into RAM. • If your dataset is huge and linearly accessed, you can wrap this with a DataLoader using num_workers=0 to stay sequential. ⸻ LMK if you need help
discuss.huggingface.co
July 3, 2025 at 10:50 AM
ValueError: You should supply an encoding or a list of encodings to this method that includes input_ids, but you provided ['pixel_values']
I want to fine tune a VisionEncoderDecoderModel.from_pretrained(model_name) I use a CustomOCRDataset from Learn Open CV. But the default_data_collator fails to stack the inputs because the samples have a different shape , so I decided to use DataCollatorForSeq2Seq and Resize in augmentation. I get an error ValueError: You should supply an encoding or a list of encodings to this method that includes input_ids, but you provided [‘pixel_values’] So I changed **getitem** to get input_ids, but the error is still the same. def __getitem__(self, idx): file_name = self.df['file_name'][idx] text = self.df['text'][idx] assert text.strip() != "", f"ERROR Empty text in {idx}" # Read the image, apply augmentations, and get the transformed pixels. image = Image.open(self.root_dir + file_name).convert('RGB') image = train_transforms(image) pixel_values = self.processor(image, return_tensors='pt').pixel_values # Pass the text through the tokenizer and get the labels, # i.e. tokenized labels. labels = self.processor.tokenizer( text, padding='max_length', max_length=self.max_target_length, return_tensors='pt' ).input_ids.squeeze(0) # We are using -100 as the padding token. labels = torch.where(labels == self.processor.tokenizer.pad_token_id, torch.tensor(-100), labels) encoding = {"pixel_values": pixel_values.squeeze(0), "input_ids": labels} return encoding @dataclass(frozen=True) class TrainingConfig: BATCH_SIZE: int = 16 EPOCHS: int = 5 LEARNING_RATE: float = 0.00005 @dataclass(frozen=True) class DatasetConfig: DATA_ROOT: str = image_dir @dataclass(frozen=True) class ModelConfig: MODEL_NAME: str = 'microsoft/trocr-base-handwritten' # Augmentations. train_transforms = transforms.Compose([ transforms.Resize((1024, 880)) ]) processor = TrOCRProcessor.from_pretrained(ModelConfig.MODEL_NAME) train_dataset = CustomOCRDataset( root_dir=os.path.join(DatasetConfig.DATA_ROOT, train_destination), df=train_df, processor=processor ) valid_dataset = CustomOCRDataset( root_dir=os.path.join(DatasetConfig.DATA_ROOT, test_destination), df=test_df, processor=processor ) training_args = Seq2SeqTrainingArguments( predict_with_generate=True, evaluation_strategy='epoch', per_device_train_batch_size=TrainingConfig.BATCH_SIZE, per_device_eval_batch_size=TrainingConfig.BATCH_SIZE, fp16=True, output_dir='seq2seq_model_printed/', logging_strategy='epoch', save_strategy='epoch', save_total_limit=5, report_to='tensorboard', num_train_epochs=TrainingConfig.EPOCHS ) data_collator = DataCollatorForSeq2Seq(tokenizer=processor.tokenizer, model=model, padding=True) # Initialize trainer. trainer = Seq2SeqTrainer( model=model, tokenizer=processor.feature_extractor, args=training_args, compute_metrics=compute_cer, train_dataset=train_dataset, eval_dataset=valid_dataset, data_collator=data_collator ) trainer.train() The full ERROR : File \transformers\data\data_collator.py:599, in DataCollatorForSeq2Seq.__call__(self, features, return_tensors) 596 non_labels_features = [{k: v for k, v in feature.items() if k != label_name} for feature in features] 598 # run through tokenizer without labels to ensure no side effects --> 599 batch = pad_without_fast_tokenizer_warning( 600 self.tokenizer, 601 non_labels_features, 602 padding=self.padding, 603 max_length=self.max_length, 604 pad_to_multiple_of=self.pad_to_multiple_of, 605 return_tensors=return_tensors, 606 ) 608 # we have to pad the labels manually as we cannot rely on `tokenizer.pad` and we need them to be of the same length to return tensors 609 no_padding = self.padding is False or self.padding == PaddingStrategy.DO_NOT_PAD File \transformers\data\data_collator.py:66, in pad_without_fast_tokenizer_warning(tokenizer, *pad_args, **pad_kwargs) 63 tokenizer.deprecation_warnings["Asking-to-pad-a-fast-tokenizer"] = True 65 try: ---> 66 padded = tokenizer.pad(*pad_args, **pad_kwargs) 67 finally: 68 # Restore the state of the warning. 69 tokenizer.deprecation_warnings["Asking-to-pad-a-fast-tokenizer"] = warning_state File \transformers\tokenization_utils_base.py:3305, in PreTrainedTokenizerBase.pad(self, encoded_inputs, padding, max_length, pad_to_multiple_of, padding_side, return_attention_mask, return_tensors, verbose) 3303 # The model's main input name, usually `input_ids`, has been passed for padding 3304 if self.model_input_names[0] not in encoded_inputs: -> 3305 raise ValueError( 3306 "You should supply an encoding or a list of encodings to this method " 3307 f"that includes {self.model_input_names[0]}, but you provided {list(encoded_inputs.keys())}" 3308 ) 3310 required_input = encoded_inputs[self.model_input_names[0]] 3312 if required_input is None or (isinstance(required_input, Sized) and len(required_input) == 0): ValueError: You should supply an encoding or a list of encodings to this method that includes input_ids, but you provided ['pixel_values'] The solutions that I’ve already tried were: → to do transforms.Resize((1024, 880)), → to use a custom data collator I got a TypeError: ViTModel.forward() got an unexpected keyword argument ‘num_items_in_batch’. That’s why I decided to use DataCollatorForSeq2Seq. But I’m getting another error over and over: You should supply an encoding or a list of encodings to this method that includes input_ids, but you provided [‘pixel_values’]. Thanks in advance!
discuss.huggingface.co
February 4, 2025 at 9:30 AM
https://nextjs.org/docs/app/building-your-application/data-fetching/patterns
void getItem(id)

とかそんな書き方するんだ…
August 16, 2023 at 12:25 PM
ある Lambda で DynamoDB のテーブルに PutItem した 直後に全く別の Lambda のコンテキストで GetItem する必要がでてきて、「分散DB~」となった
December 10, 2024 at 10:30 AM