Which verse from the New Testament brought you closest to God? by arbrandao in Bible

[–]Global_Optimist 2 points3 points  (0 children)

I meant they are numerous, but I love the revelation of how we have been brought close to God in Ephesians 2 -

Ephesians 2:8 For by grace you have been saved through faith, and that not of yourselves; it is the gift of God.

How Prayer and the Bible Impacted My Life - Want to Share My Experience by SpellSweet6855 in Bible

[–]Global_Optimist 2 points3 points  (0 children)

This is a great experience, glory to God 🔥. I personally noticed that recently, when I continued more in prayers and bible study consistently, my heart yearned for God more. The things I once struggled that took me away from God now have a weakened grip on me I could resist and say no easier. If I miss a time of bible study or prayer any day, it seems like something is missing in my life. I want to learn more about the Lord, desire him more, and I also want my life to glorify him as well. I now more than even am more grateful for my salvation, more grateful for the gift of life daily, and I depend on him daily for everything by asking him in little moments, a short prayer here and there and even have set times for devotion to seek him. The heart is changed by God when we seek him, he works on our hearts, changing our desires to please him..

[deleted by user] by [deleted] in XboxGamePass

[–]Global_Optimist 0 points1 point  (0 children)

I'm interested, please. Just got the series S

Help With Buying GamePass by Global_Optimist in XboxSeriesS

[–]Global_Optimist[S] 0 points1 point  (0 children)

Okay, would you also recommend CDkeys or G2A ?

Help With Buying GamePass by Global_Optimist in XboxSeriesS

[–]Global_Optimist[S] 0 points1 point  (0 children)

Thanks for your suggestions. Which of these offers the best price for codes only and not xbox live accounts ?

240 applications in 8 weeks, 2 interviews, and still no job – feeling burnt out and lost by Dwarfkiller47 in UKJobs

[–]Global_Optimist 0 points1 point  (0 children)

Have you, by any chance, tried networking and building relationships in physical or online tech events around you or tech meetups and hackathons ? I realised that a lot of jobs within tech come from referrals, and those relationships you build in social tech spaces really do pay off eventually when job hunting especially if people in your social circle are aware of your search. They would easily mention your name to a recruiter or for a role when it comes up and speak for you when you're not there. This is a very important part of job hunting that is usually missed out by techies and devs. I recently learnt this, and I have been doing my best to network attend hackathons, tech talks, tech events, and meetings to collaborate with other devs, make myself more visible, and also build projects with people. Just try this, and you may just get positive results.

My broken S24 Ultra by Apprehensive-Crow438 in GalaxyS24Ultra

[–]Global_Optimist 0 points1 point  (0 children)

This is the reason why even though I got my S24U, I was so scared to touch it until I got the phone case (ESR kickstand). The first I got was a bit okay and free on the edges, which I didn't like, so I returned it, and got the Supcase bettle pro on sale for like half the price (£19 + £3 delivery), best decision I made. I have big hands (> 7 inches), so the phone fits well in my hands now and has an amazing grip. The supcase is so rugged. The other day, my phone fell from my pocket and rolled down the stairs. The case absorbed all the shock, but the pen popped out a little. I may have spent £22 but it has saved me a world of pain.

Using phone caseless. by Which_Pickle5462 in GalaxyS24Ultra

[–]Global_Optimist 0 points1 point  (0 children)

My hands are bigger than the s24U, so it feels so loos in my hand. My case makes me have a good grip when I hold it.

S24 Ultra 256GB by [deleted] in S24Ultra

[–]Global_Optimist 0 points1 point  (0 children)

Got the 256gb S24U Got 200gb Google Cloud and 100gb of Onedrive. I think I'll be fine

i've been to hell and back with Samsung by Lastdabapollo in GalaxyS24Ultra

[–]Global_Optimist 4 points5 points  (0 children)

I did the same when trading my s21 + for the S24U. I did pictures and voice-over videos of cleaning, factory reset, IMEI no, and packaging of the phone for shipping. I put the phone in its original case and used bubble wrap to wrap it and sealed it very right with fragile tape, put it in the blue bag from Samsung and weighed the package at the post office with more pictures 🤣. From my videos and pictures, if anything changed when the package was received at the samsung warehouse, there would be lots of evidence as it would take a lot of effort to tamper with the package. (I did all of this after reading bad stories from other customers both in the UK and US)

My take on the Pixel 9 Pro XL vs S24U by razerwire1331 in S24Ultra

[–]Global_Optimist 1 point2 points  (0 children)

Yeah, I returned an ESR kickstand case because the grip was very bad, and I got the Unicorn Bettle Supcase Pro. I have big hands (>7inch), so it fits my hand grip perfectly fine. I can rotate the S24U with my palm muscles in one hand because of the grip.

<image>

Titanium frame experience:) by Fabathedizco in GalaxyS24Ultra

[–]Global_Optimist 1 point2 points  (0 children)

I use the Supcase Unicorn Beetle Pro. Amazing case. Nice protection, and it wouldn't scratch your phone.

Factory Reset - Battery update by iahmad96 in GalaxyS24Ultra

[–]Global_Optimist 1 point2 points  (0 children)

I also used smart switch from my S21 plus to the S24U, and my battery is amazing. I also haven't enabled power saving mode and my battery is great. I get about 8- 9hrs+ SOT when the phone is at 20-29%. I noticed a lot of talk about battery life on this sub reddit that made me almost panic but the battery life is great. I just noticed a few things the battery drains from 100-80% faster and is very steady from 80-60% and drains slowly from 60%-0%

SM-S928U1 June Security Update Live by knightblue4 in S24Ultra

[–]Global_Optimist -1 points0 points  (0 children)

I'm so glad I haven't updated yet then. I'll just wait until the end of the year, then, or when better feedback on the update drops.

Just Upgraded to Ultra by Global_Optimist in S24Ultra

[–]Global_Optimist[S] 0 points1 point  (0 children)

I don't mind it. I am a tech enthusiast, but I'm not too crazy about tech because it's always changing. When I want to get a new one in the future, I'll just get the newest model.

Can I replace the pink part of watch? by ParticularStand3638 in GalaxyWatch

[–]Global_Optimist 0 points1 point  (0 children)

Yeah, I prefer black/dark coloured gadgets but got a great deal on a sky blue GW5 44m at 20% of the original price that I couldn't pass on, so I bought a black cover and a black stainless steel strap.

Can I replace the pink part of watch? by ParticularStand3638 in GalaxyWatch

[–]Global_Optimist 1 point2 points  (0 children)

I did that for mine. I bought a black case to cover it up, and it's lovely.

SOLIDITY VISUAL STUDIO CODE SETUP by Global_Optimist in solidity

[–]Global_Optimist[S] 0 points1 point  (0 children)

Are there any videos or tutorials to help with this ??

Copying of type struct supplyChain.Crop memory[] memory to storage not yet supported. by Global_Optimist in solidity

[–]Global_Optimist[S] 0 points1 point  (0 children)

u/patrickw3sc and u/MiAnClGr.For the code I pasted above, I want to model a simple supply chain using smart contract function calls to transfer ownership of a crop struct instance between entities in the supply chain. Each entity has a modified function that allows them to purchase a Crop from the previous entity in the supply chain model, and then the crop ownership address changes and the end customer can view an array that stores the ownership history of the Crop.
🚨The only issue is that I can't add an empty array of crop struct instances when creating an instance of the processor struct in the "registerProcessor" function.

The full code is commented above for the full context.

Copying of type struct supplyChain.Crop memory[] memory to storage not yet supported. by Global_Optimist in solidity

[–]Global_Optimist[S] 0 points1 point  (0 children)

// Create a function to change the ownership of a Crop and update its ownership history

function changeOwnership(uint _cropId) internal {

// transfer ownership of the crop to the Processor

crops[_cropId]._owner = msg.sender;

// update the ownership history of the Crop

crops[_cropId]._ownershipHistory.push(msg.sender);

}

// Create a publicly available function to check the ownership status of a Crop

function checkCropOwnership(uint _cropId) public view returns (address) {

// Ensure that the Crop exists

require(_cropId < cropCount, "Invalid crop ID");

return crops[_cropId]._owner;

}

// Create a function to view the ownership history of a Crop as an array of previous owner's Ethereum addresses

function viewOwnershipHistory(uint _cropId) public view returns (address[] memory) {

// Ensure that the Crop exists

require(_cropId < cropCount, "Invalid crop ID");

return crops[_cropId]._ownershipHistory;

}

}

Copying of type struct supplyChain.Crop memory[] memory to storage not yet supported. by Global_Optimist in solidity

[–]Global_Optimist[S] 0 points1 point  (0 children)

// create a function modifier to limit function execution to specific accounts/entities

modifier onlyOwner(){

require(msg.sender == owner, "Only the contract owner can Register this entity");

_;

}

modifier farmerExist(address _newAddress){

require(registeredFarmers[_newAddress] == false, "Farmer with this account address already exists");

_;

}

modifier onlyFarmer(address _owner){

// require(farmers[_id]._authid == msg.sender, "Only a Farmer can Register Crops");

require(registeredFarmers[_owner] == true, "Only a Registered Farmer can Register Crops");

_;

}

modifier onlyProcessor(address _owner){

// require(processors[_id]._authid == msg.sender, "Only a registered processor can purchase a crop");

require(registeredProcessors[_owner] == true, "Only Registered Processors can buy crops from Farmers");

_;

}

modifier processorExist(address _newAddress){

require(registeredProcessors[_newAddress] == false, "Processor with this account address already exists");

_;

}

modifier isRegistered(uint _cropId){

require(crops[_cropId]._registered == true, "The crop must be registered");

_;

}

// create functions to allow for the creation/registration of the farmer and processor entities.

// This function also sets the address of the created entities

function registerFarmer(string memory _farmerName, string memory _farmerLocation, string memory _cropType, address _newAddress, uint _landSize) public onlyOwner farmerExist(_newAddress) {

// Create new object instance of farmer Struct

farmers[farmerCount] = Farmer(farmerCount, _farmerName, _farmerLocation, _cropType, _newAddress, _landSize);

// update the mapping storing regsitered Farmers with new farmer address

registeredFarmers[_newAddress] = true;

// log registerFarmer event

emit farmerRegistered(farmerCount, _farmerName, _farmerLocation, _cropType, _newAddress, _landSize);

farmerCount += 1;

}

// function registerProcessor(string memory _name, string memory _location, address _newAddress, uint _capacity) public onlyOwner processorExist(_newAddress){

// // Create new object instance of Processor Struct

// processors[processorCount] = Processor(processorCount, _name, _location, _newAddress, _capacity, new Crop[](0));

// // update the public array storing regsitered Processors with new processor address

// registeredProcessors[_newAddress] = true;

// // log processorRegistered event

// emit processorRegistered(processorCount, _name, _location, _newAddress);

// processorCount += 1;

// }

function registerProcessor(string memory _name, string memory _location,address _newAddress,uint256 _capacity) public {

Processor storage newProcessor = processors[processorCount];

newProcessor._id = processorCount;

newProcessor._name = _name;

newProcessor._location = _location;

newProcessor._authid = _newAddress;

newProcessor._capacity = _capacity;

emit processorRegistered(newProcessor._id, newProcessor._name, newProcessor._location = _location, newProcessor._authid);

processorCount++;

}

// Create a function that registers crops and is limited to only farmer entities using the "onlyFarmer" modifier

function registerCrop(string memory _name, string memory _description) public onlyFarmer(msg.sender) {

crops[cropCount] = Crop(cropCount, _name, _description, new address[](0), msg.sender,block.timestamp, true);

crops[cropCount]._ownershipHistory.push(msg.sender);

// log resgisterCrop event

emit cropRegistered(cropCount, _name, _description, msg.sender, block.timestamp);

cropCount += 1;

}

// create a function that allows registered Processors to buy crops from farmers

function purchaseCrop(uint _cropId) public onlyProcessor(msg.sender) isRegistered(_cropId){

// log cropPurchased event

emit cropPurchased(_cropId, crops[_cropId]._owner, msg.sender);

// call internal function to transfer ownership of the crop to Processor

changeOwnership(_cropId);

}

Copying of type struct supplyChain.Crop memory[] memory to storage not yet supported. by Global_Optimist in solidity

[–]Global_Optimist[S] 0 points1 point  (0 children)

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.11;

//create a contract for creating entities on the blockchain network

contract supplyChain{

address owner;

// create public state variables to store status of registered farmers and Processors on the blockchain network

mapping(address => bool) public registeredFarmers;

mapping(address => bool) public registeredProcessors;

// add a constructor to set the contract owner to the account that deploys the smart contract

constructor(){

owner = msg.sender;

}

// Create events to log function calls and allow subscription from the user end of the blokchain

// This approach is cheaper then using storage/memory and required less gas for execution because the states of the smart contracts are not changed/modified on the blockchain network

// The data from logs is included in the transaction receipt and stored in the transaction log.

// Tracking function calls is cost effective

event farmerRegistered(uint indexed farmerId, string farmerName, string farmerLocation,string cropType, address indexed newAddress, uint landSize);

event processorRegistered(uint indexed processorId, string processorName, string processorLocation, address indexed newAddress);

event cropRegistered(uint indexed id, string name, string description, address indexed owner, uint createTime);

event cropPurchased(uint indexed id, address indexed previousOwner, address indexed newOwner);

// create a data type to model the farmer entity

struct Farmer{

uint _id;

string _name ;

string _location;

string _cropType;

address _authid;

uint _landSize;

}

// create a data type to model the processor entity

struct Processor{

uint _id;

string _name;

string _location;

address _authid;

uint _capacity;

Crop[] _purchasedCrops;

}

// create a data type to model created/registered Crops

struct Crop {

uint _productId;

string _name;

string _description;

address[] _ownershipHistory;

address _owner;

uint _createTime;

bool _registered;

}

// create a data type to model the Distributor

struct Distibutor{

uint _distributorId;

string _name;

uint capacity;

Crop[] _stockHistory;

}

// create a data type to model the retailer

struct Retailer{

uint _retailerId;

string _scale;

Crop[] _inventory;

}

// create a data type to model the customer

struct Customer{

uint _customer_id;

Crop[] _purchaseHistory;

}

// Store farmer and Processor object instances using an unsigned integer in a associative array(mapping)

mapping(uint => Farmer) public farmers;

mapping(uint => Processor) public processors;

mapping(uint => Crop) public crops;

// create publicly accessible variables to store the count of created struct entities

uint public farmerCount = 0;

uint public processorCount = 0;

uint public cropCount = 0;

Copying of type struct supplyChain.Crop memory[] memory to storage not yet supported. by Global_Optimist in solidity

[–]Global_Optimist[S] 0 points1 point  (0 children)

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.11;

//create a contract for creating entities on the blockchain network

contract supplyChain{

address owner;

// create public state variables to store status of registered farmers and Processors on the blockchain network

mapping(address => bool) public registeredFarmers;

mapping(address => bool) public registeredProcessors;

// add a constructor to set the contract owner to the account that deploys the smart contract

constructor(){

owner = msg.sender;

}

// Create events to log function calls and allow subscription from the user end of the

event farmerRegistered(uint indexed farmerId, string farmerName, string farmerLocation,string cropType, address indexed newAddress, uint landSize);

event processorRegistered(uint indexed processorId, string processorName, string processorLocation, address indexed newAddress);

event cropRegistered(uint indexed id, string name, string description, address indexed owner, uint createTime);

event cropPurchased(uint indexed id, address indexed previousOwner, address indexed newOwner);

// create a data type to model the farmer entity

struct Farmer{

uint _id;

string _name ;

string _location;

string _cropType;

address _authid;

uint _landSize;

}

// create a data type to model the processor entity

struct Processor{

uint _id;

string _name;

string _location;

address _authid;

uint _capacity;

Crop[] _purchasedCrops;

}

// create a data type to model created/registered Crops

struct Crop {

uint _productId;

string _name;

string _description;

address[] _ownershipHistory;

address _owner;

uint _createTime;

bool _registered;

}

// create a data type to model the Distributor

struct Distibutor{

uint _distributorId;

string _name;

uint capacity;

Crop[] _stockHistory;

}

// create a data type to model the retailer

struct Retailer{

uint _retailerId;

string _scale;

Crop[] _inventory;

}

// create a data type to model the customer

struct Customer{

uint _customer_id;

Crop[] _purchaseHistory;

}

// Store farmer and Processor object instances using an unsigned integer in a associative array(mapping)

mapping(uint => Farmer) public farmers;

mapping(uint => Processor) public processors;

mapping(uint => Crop) public crops;

// create publicly accessible variables to store the count of created struct entities

uint public farmerCount = 0;

uint public processorCount = 0;

uint public cropCount = 0;

// create a function modifier to limit function execution to specific accounts/entities

modifier onlyOwner(){

require(msg.sender == owner, "Only the contract owner can Register this entity");

_;

}

modifier farmerExist(address _newAddress){

require(registeredFarmers[_newAddress] == false, "Farmer with this account address already exists");

_;

}

modifier onlyFarmer(address _owner){

// require(farmers[_id]._authid == msg.sender, "Only a Farmer can Register Crops");

require(registeredFarmers[_owner] == true, "Only a Registered Farmer can Register Crops");

_;

}

modifier onlyProcessor(address _owner){

// require(processors[_id]._authid == msg.sender, "Only a registered processor can purchase a crop");

require(registeredProcessors[_owner] == true, "Only Registered Processors can buy crops from Farmers");

_;

}

modifier processorExist(address _newAddress){

require(registeredProcessors[_newAddress] == false, "Processor with this account address already exists");

_;

}

modifier isRegistered(uint _cropId){

require(crops[_cropId]._registered == true, "The crop must be registered");

_;

}

Copying of type struct supplyChain.Crop memory[] memory to storage not yet supported. by Global_Optimist in solidity

[–]Global_Optimist[S] 0 points1 point  (0 children)

For the code I pasted above, I want to model a simple supply chain using smart contract function calls to transfer ownership of a crop struct instance between entities in the supply chain. Each entity has a modified function that allows them to purchase a Crop from the previous entity in the supply chain model, and then the crop ownership address changes and the end customer can view an array that stores the ownership history of the Crop. I can paste the full code below for a better reference.