Key Questions
Ad
Ad
JavaScript object how to use Foreach loop
JavaScript's Array#forEach() function lets you iterate over an array, but not over an object. You can iterate over a JavaScript object using forEach() using Object.keys(), Object.values(), or Object.entries().
Making Seo Friendly Website
Make your website easy to search and easily to available the whole world. put your website on top of google's search results.
Subclass edit control without ruining copy/paste
I want to create an edit control where users can only type in floating point numbers, but i want to also be able to copy/paste/cut text in this
Calendar using enumeration
I am trying to write a program with the help of enumerations with which i can display both today and the next day. the problem is that i don't
How to efficiently count the number of keys/properties of an object in JavaScript
What's the fastest way to count the number of keys/properties of an object? is it possible to do this without iterating over the object? i.e.,
Where can I learn about proven methods for sharing cryptographic keys?
Suppose that a group wants to encrypt some information, then share the encryption key among the group members in a way that requires the consensus
Compound keys in JPA
I want to make an entity that has an autogenerated primary key, but also a unique compound key made up of two other fields. how do i do this in
Surrogate vs. natural/business keys
Here we go again, the old argument still arises... would we better have a business key as a primary key, or would we rather have a
Extra tables or non-specific foreign keys?
There are several types of objects in a system, and each has it's own table in the database. a user should be able to comment on any of them. how
How can I find the keys of an object?
I know in javascript, objects double as hashes, but i have been unable to find a built-in function to get the keys: var h
Are foreign keys really necessary in a database design?
As far as i know, foreign keys (fk) are used to aid the programmer to manipulate data in the correct way. suppose a programmer is actually doing
Mapping my custom keys in Debian
I have a microsoft keyboard with a series of non-standard buttons such as "mail", "search" , "web/home" etc. it would be nice to be able
Ad
Multiple foreign keys?
I've got a table that is supposed to track days and costs for shipping product from one vendor to another. we (brilliantly :p) stored both the
How can I listen in on shortcuts when the app is the task bar in C#
An example of an app that does this is enso, it pops up when you press the
What does the @ in this code sample mean?
Html.textbox("parentpassword", "", new { @class = "required" }) what the gosh darned heck is the @ for the @class.
java - path to trustStore - set property doesn't work?
I've setup a self-signed certificate to test an ssl java connection - however, it is refusing to locate the java truststore. i've saved copies of
To remove duplicate among array of objects corresponding to the other key and value pair of object using javascript
Have an array of objects with object having two key and value pairs. [{fruit:"apple",locale:"us"}, {fruit:"orange",locale:"us"},
COMException when adding ForeignKey to the table using ADOX for AccessDB
I get this exception: invalid field definition 'nalogid' in definition of index or relationship. exception is fired when i append the table in the
How do I list / export private keys from a keystore?
How do i list and export a private key from a keystore?
How to keyboard down or up between dropdown "options"?
I have a custom built ajax [div] based dynamic dropdown. i have an [input] box which; onkeyup, runs an ajax search which
Why does the DBMS say that the primary key is not present in the table
I am a cs student that is taking his first course in databases so here i am using postgresql to create a database with the following tables:
What dotnet collection class's items can be enumerated in "addition order" and retrieved via a key?
I'm lead to believe that i cannot count on the order of items added to a dictionary for enumeration purposes. is there a class
Can you monkey patch methods on core types in Python?
Ruby can add methods to the number class and other core types to get effects like this:
Ad
Low level keyboard input from Windows
What win32 calls can be used to detect key press events globally (not just for 1 window, i'd like to get a message every time a key is pressed),
I want to declare the values of the objects within the class and only call the keys when Im declaring a new class. What could I do?
This is what ive done so far. class pricecalc { constructor(obj) { this.parts = object.keys(obj); this.cost = "$"
How to access KeyValuePair collection as JSON array
I'm making ajax calls to a page in asp.net core 3.1. the response is a jsonresult whose value property is an
How do I get a SVN checkout using a Public/Private key pair?
I have to check some code and run it. i have the url: svn+ssh://[email protected]/home/svn/project/trunk i
How do I setup Public-Key Authentication?
How do i setup public-key authentication for ssh?
Event listener in Java without app having focus? (Global keypress detection)
I've been searching for a while and everybody seems to think this is not possible using just java, so i'll give so a shot ;) is there any
How can I redirect to my youtube subscription page in Greasemonkey?
I don't want to see distracting youtube recommendations on my start screen, i just want to be redirected to my subscription page whenever i go to
How can I handle only the first part of my value list of a dictionary in Python?
I have a dictionary which has a list of values and i want to use only the first value of each pair before the first comma. is that possible?
Duplicate Line Visual Studio 2022
How do i duplicate the line my cursor is in on visual studio 2022. vs 2017, 2019 it was ctrl + d. but that command is not working in
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row laravel9
I hope you are fine, i have a problem when i run a php artisan db:seed command in laravel 9 the error
Git does not use SSH key (Windows)
I created a ssh key for my gitlab repository and when i test it with ssh it does work and asks for the passphrase: >ssh -t
Ad
How to set author name for subversion when i'm using svn:keywords
I want to set my full name (or a name chosen by me) to appears in the $id$ area on commit and not my nickname. is there a way to do it?
How can I get the list of indices an associative array has?
I have an associative array in awk, and i can iterate over the values of the array using (e.g.) for (v in array)
How can I register a global hot key to say CTRL+SHIFT+(LETTER) using WPF and .NET 3.5?
I'm building an application in c# using wpf. how can i bind to some keys? also, how can i bind to the
how extract values from this dictionary in python?
I have a dictionary like that:
IQKeyboardManager for iOS 11 Xcode 9.2 Cannot build
I'm trying to integrate iqkeyboardmanager in my application. due to few existing constrains i can only drag and drop the library into my project.
Home/End keys in zsh don't work with putty
I'm running zsh as the default shell on a ubuntu box, and everything works fine using gnome-terminal (which as far as i know emulates xterm). when
Home key go to start of line in Visual Studio?
Where is the option in visual studio to make the home key go to the start of the line? right now you have to do
How to detect focus in children from a parent widget
In flutter, how can a parent widget know if a child among many children widgets has received focus? for example, can we know if a
iOS 11 password autofill doesn't save password to the Keychain
I'm using password autofill feature in the ios app.
Where to store API keys for React/Node app in aws ec2 instance?
I have a react/node application in an ec2 ubuntu instance(sitting at /home/ubuntu/app-name). it's consistently deployed using aws cloud deploy and
How can I get MD5 signature from a project?
I used keytool to get signature, it prints sha1, sha256, but no md5. i have viewed all the
Ad
How to hide keyboard. System services not available to Activities before onCreate()
System services not available to activities before oncreate() i have dialog class mypersonaldialog(mcontext: context) and this dialog
Get key and value from firebase push notification
I have an react-native app (android) to receive push notification from firebase console.
unique "key" / table should have a unique `key` prop, or set `rowKey
Question: how to pass / create and pass unique key to radio button , also i have a table component that takes data(arra) and it also says that
python how to detect key combinations with opencv waitkey library?
I am having a machine learning project which is designing autonomous driver for speed dreams game in linux. in this case i have to find a way to
Selenium send_keys doesn't do the same element twice
I'm trying to send keys to wordle based on the elements in the html, and have found that whenever there is a duplicate of a letter it won't press
How to create restricted Api Key to use directions api?
I'm creating an app that's draw routes between users using only firestore to update users location. the problem is to use direction api i
view stuck on `commitText` method of InputConnection
I am committing text when user press key using the key code in inputconnection but this method will hang the view and it will
How to remove special characters from ANDROID KEYBOARD without using custom keyboard?
I want user to input only numbers in my edit text in android application.for that i have added android:inputtype="number"
Db query builder use relationship
I have 1 to many relationships. organization with booking. on the booking table foreign key organization_id. organizations table foreign key
How to check the Certificate Revocation Lists (CRL) of Android's KeyStore?
I want to use android's hardware keystore feature, so i used a pixel3 phone to get the certificate chain of the keystore object, as seen in
Ad
Laravel : How to update boolean value using foreign key in a table
here is my database table i want to work with i want to
Android: Decryption process is taking lot of time
When we create the set of keys with following code: val generator = keypairgenerator.getinstance(rsa)
Relational database structure for storing multiple hobbies of a user
I am trying to register some users with basic details like username/email, password and their respective hobbies like reading, sports, dance etc
Why KEY has automatically created when I make fk constraint for field?
I am creating the table with this syntax: create table movies_genres ( id bigint auto_increment, movie_id int not null,
Create a new columns based on keywords in YAKE
I'm trying to use yake to extract the keywords from a list of books' summaries. df = {'book': [1, 2], 'summary': ['text definition
Nullable foreign key on room
I would know if that is possible to create a possible null reference on foreign key with room. for now my database structure is like this
webpack-dev-server: auto reload for tampermonkey script
I am trying to get webpack-dev-server auto-reload a script i am writing to run as userscript in tampermonkey with the
how to fetch observables in parallel, wherein only one api call has a retry logic
I want to implement a logic using rxjava in my android application, which requires three parallel api calls. only the third api call has a retry
How to access properties file using dynamic keys in react?
Sample properties file. const properties = { subproper: { name:'denise', age:'64' } }
Couldn't find my Api-key in my firebase console for my flutter project sign-up authentication
I'm new to flutter and trying to implement sign-up authentication in flutter using firebase. but the problem is that when i learned about
How to add a function to judge that the mouse does not over the icon bar that it disappears automatically
How to add a function to judge that the mouse does not over the icon bar that it disappears automatically in tampermonkey, i use a
Ad
Use foreign key id to get a foreign table name
I have some tables, all estate have an category_id, i put a foreign key to do the relationship, but won't work now, how can i
Reading values from a key within a Directory within a List from a JSON file using Python
I've got a rather ml ugly json file that i'm trying to pull values from. below is the first entry on the list: [
Flutter TextFormField: The keyboard appeared and instantly disappeared
When i click the textformfield, the keyboard appears, then it disappears instantly, just like blinking. i wonder that whether it is because the
How to create an additional input method service without changing default selected one?
I want to make a new input method with no actual keyboard. it should stay active (after being enabled by user) always but not be the default
Where in Django code put code disconnecting signal and doing monkey-patching?
I'm working on custom authorization backend for django 2.2. i don't want django to update last_login for user so i wanted to
For-Loop Index KeyError when trying to get sums
I want to find out the sum of a variable for a specific classification. my variable a is a (cm) classification, the other one is a float
Laravel - how to pass the foreign key without user selecting it
I have two database tables, trips and events. i have created a relationship between them in laravel. one trip can have many events. i
Laravel adding cascade on delete to an existing table
In my laravel application i have a table called researces and another one called papers. they have one-to-many relationship where each research
Why there are some random bytes from the openssh server while responding kex-neogitation?
I am writing a simple ssh-client in python following the specs specified
How to verify ECDSA with Public Key?
I have the following methods for generating keys and signing the password message. public void generatekeys() { try { keystore =
How to get id for each Object keys
L have following data json , contain on object keys and those keys are change regular "2461ba4c": [ // <----------- get the
Ad
2 foreign keys one create blade
I think its an easy one but my brain is not trying to comprehend it. so the issue is i have a series table, a seasons table and an episode table.
How to use Azure Key Vault in android
I'm using azure as cloud storage, i'm able to upload and download the images/files in azure blob container using following link.
How to remotely Enable/Disable a tampermonkey script for other users
I have created a tampermonkey script and i would like to share it to a friend. is there any way to disable it remotely and make it non functional
How to correctly store user input (keyboard,mouse) in file using keyboard & mouse Python modules?
I am using the keyboard and mouse modules to record user interaction with our software so that we can have some high level gui tests. currently i
insert a span in a contenteditable, and then user can not continue input after and out the span that just be insert
the code target : when user press space, auto input a span, and then user can continue input, when i trace them in the
Difference between keystore and key (upload key)?
Android's new app bundle (instead of apk)
Creating relation within the same table not working in laravel
I have categories table whose sql is this in the migration file: public function up() { schema::create('categories', function
Trying to get property 'name' of non-object (View: C:\xampp\htdocs\COMPLIANCE-FAQ\resources\views\respones\show.blade.php)
I have 4 tables (users, ask_questions, respones, categories). i'm trying to show each response done asked question but i'm getting this error:
Interchangeable dictionary
I wish to have a dictionary that is interchangeable i.e. values are mapped with keys & keys are mapped with value so that if we know one
How to push content up when focus is on TextField and keyboard opens in Flutter?
I need to push my content up when the focus is on 'description' textfield and the keyboard opens
How to retrieve Azure Key Vault in React JS
I have created some setting in azure and i need fetch some secret keys from there in react js const keyvault =
Ad
What does firebase expect to find in my osx keychain?
I'm currently getting an error on firebase init. 2019-05-03 15:55:24.945218-0500 choosehealthapp[5538:1534233] 5.20.0 -
Laravel 5.8 ManyToMany relationship child relation usign foreign key doesn't work
When i call my image resource it returns the correct data from my model: image resource: return [ 'id' =>
How to update pinned ssl certificates android
I am implementing ssl pinning in our android app. i have pinned 2 certificates (current and backup) at the client by embedding them in the
Naming style for SQL columns in Python
Primary keys in databases are commonly named "id", which is problematic when using tools like sqlalchemy to compose your database layout in
Restrict virtual keyboard Input to input field maxLength JavaScript
My problem is how can i limit the length of characters from virtual keyboard. i found virtual keyboard on codepen
Tampermonkey script getting overwritten
I'm trying to use tampermonkey to delete html elements from a list on a web page, but after ~0.5s, the remaining elements get half-overwritten
How to remove keyboard tool bar in Flutter?
I want remove keyboard tool bar. however, the keyboard does not seem to have an attribute to remove the toolbar. please help me,,,,
How to generate a PEM-formatted Key from a 64Byte raw hex-formatted Key
I have the following problem: after recreating the public key from a signed transaction, i try to encrypt some payload with it. however
How to allow two or more react native apps to share data with each other?
I am working on a poc where i want to share data between two or more apps on the same device. i have read about shared preferences for android but
How to hide API Keys in flutter and still be able for your team to use your code base?
I am using flutter and need to hide api keys and firebase plist files in both android and ios folders. what is the best way of going about this. i
Using **kwargs on super() gives me Attribute Error
Just trying to create a simple toy example to calculate the surface area of a pyramid: class rectangle: def __init__(self,
Ad
Keypoints detection and matching between binary masks
I am trying to match keypoints using opencv
JavaScript - How do I exclude elements from an object?
I have an object mainobject, but i would like to exclude and map some of the keys before returning it to the user. however, i do not
Ad
Blog Categories
Ad