How can I do a "Group by" with a Dictionary object?

In C#, I have a Dictionary object which stores one integer value and one decimal value. Dictionary<decimal,int> objDict = new Dictionary<decimal,int>(); and the values are 12 1 23 1 14...

UIDocumentInteractionController and file from web

I want to open file from the web in other apps. My code: NSURLRequest *req = [[NSURLRequest alloc] initWithURL:url]; [NSURLConnection sendAsynchronousRequest:req queue:[NSOperationQueue mainQueue]...

Converting from Python to C#

I am having a bit of trouble converting this little class from Python to C#, could anyone help me please? So far I have this: public class objDict { public objDict(Dictionary<object, object>...

Randomize a list in Microsoft Word

I am a teacher and I have been making a number of multiple choice tests for students using Microsoft Word. Is there a way for me to automatically shuffle the questions so that I can have multiple...

count the occurrence of each unique word in the file c#

I am writing a simple console application to would allow me to count the occurrence of each unique word. for example the console will allow the user to type a sentence, once press enter the ...

How do I make an iTextSharp signature appear on every page of a document?

when I sign a document the signature only appears on the first page. Is there anything I can do to make it appear on every page? This is the method I'm using right now to sign the PDF, hope it...

List of All Countries DropDown

I used this code to populate my dropdownlist with countries list: public JsonResult GetAllCountries() { var objDict = new Dictionary<string, string>(); foreach (var cultureInfo in...

Tween.js rotation not working when using Three.js loader

I am working on a simulation project that was started a few years ago. They were using older versions of three.js and tween.js libs and I had to upgrade them for other reasons. I have a problem...

How to get specific value of an dictionary

i have an Dictionary of type int, myclass. in myclass i have following attributes: an string, int, and an string array. Evrything works fine when i save the data in dictionary. But i want now to...

Stripe Integration with classic ASP

i am trying to integrate stripe payment gateway in classic ASP using vb script , i am very new to ASP and vb script and trying to learn how it could be done. meanwhile i have got a great resource...

Using input box to store unique values

I am working on some data from which I want to extract unique values from a column and storing them in an array and later using it for other calculations. Sub A_Unique_B() Dim X Dim objDict As...

Handling Swift Dicts: fatal error: can't unsafeBitCast between types of different sizes

I have a function in Swift that needs to be able to handle multiple types. Specifically, it needs to be able to parse both Dicts and Strings. The problem I have is the Dicts could be several...

Get list of all followers from twitter using Fabric

Getting the list of followers from twitter sdk using fabric but not able to get more than 20. And another limitation is need to get the all followers first and then upload to api. I am using code...

Classic ASP - Website localization

I need to add Languages support to an existing classic asp website The "best" solution I found is to encapsulate every text in a function, create a database table where store, for every page, the...

Managing leaderboard in unity with firebase

I want to save player score into firebase database I write this code and make a post request in JSON format it neither priting error nor adding data into server . each time www.text brings brings...

Declaring Variables Memory Leaks

I am wondering what would be the most correct way to deal with memory when using VBScript. Should declare all variables right before I use them? The beginning of the program? I understand global...

Classic ASP: How to sort a dictionary If It has class Items for values

I need to sort a dictionary by its key, but the values are class items. Here is the class: CLASS Person PUBLIC PersonID PUBLIC PersonName PUBLIC GenderID PUBLIC...

PowerShell dictionary of arrays?

In VBScript I can do something like this Set objDict = CreateObject("Scripting.Dictionary") objDict.Add "item1", Array("data1", "data2") objDict.Add "item2", Array("data3", "data4") Then I can...

Bulk insert into SQL from a SOAP Request

Our current design is getting back an Http request text and parsing it by LoadXML. The XML data is being read by looping thru the nodes and inserting the data needed one at a time. Since I have a...

VBScript: How to loop through multiple object properties and to pass object property as function parameter?

I have three questions regarding VBScript: How to loop through multiple object properties: .Lang, .Time, .Cal etc? How to pass object with property or property as function parameter (see Function...

Using VBscript to access all values in JSON data

I have to do some vbscript that handles a json formatted output from a webserver. I am using an old vbscript code snippet I have found called "aspJSON" - I think it is from www.aspjson.com but...

vb.net clear multi-key dictionary

I am writing a program to populate a .txt template file with values by replacing placeholders. The values are coming from an excel document. I am reading a map file that contains, line by line 3...

Compare keys from the same dict if contain same string python

I have a dict with a lot of keys and about 100 values for those keys. But every dict have some sort of ID at the end, and I need to compare values of every dict with some reference, but just if...

Find a Value in a Dictionary with a certain Property

Say I have a dictionary like objDict = { id1 : { name: 'someObj1', id: 'someId1' }, id2 : { name: 'someObj2', id: 'someId2' }, id3 : { name: 'someObj3', id: 'someId3' }, } If I wanted to...

NSKeyedArchiver.archiveRootObject fails to save

I have a group of custom objects that I'm converting to NSMutableDictionary's, and then creating an array out of them (this part is currently working as expected). I'm then attempting to save that...

Use a python class to replace values in a nested dictionary

I have a nested dictionary and I would like to replace all the values of a particular key. Here is the input dictionary: {'handlers': {'console': {'class': 'logging.StreamHandler', ...

How to solve 'Fatal signal 6 (SIGABRT)' error on Xamarin?

First of all, my native language is spanish so I'd want to apologize if I write bad some (or all) sentences. I'm developing an App in Xamarin.android that uses Digital Signature on a PDF document...

Extract unique values from column based on criteria

I would like to extract unique values based on a criteria. This is what I have so far: Sub test() Dim x As Variant Dim objdict As Object Dim lngrow As Long With Sheets("Sheet1") ...

How do I extract unique values from multiple columns and use them to populate one column?

I have a large table with lots of data, but what I'm looking at is six columns of that table - the names of people who went on a particular job together. Something like...

Kotlin Multiplatform Library Project Upload Issue - POM Multiple Artifacts

We have a Kotlin multi-platform library project with a build script which builds for various platforms, i.e. common, JS & JVM, using the "old-style" sub-project structure and processes. Under this...