Dynamic grouping and aggregation on List> – Java 8

@Test public void testAggregation() { List<Map<String, Object>> joinedList = new ArrayList<>(); Map<String, Object> Myrecord = new HashMap<> (); Map<String, Object> Myrecord2 = new HashMap<> (); Map<String, Object> Myrecord3 = new HashMap<> (); Myrecord.put(“ad_id”, 8710); Myrecord.put(“medium_type”, 2); Myrecord.put(“impressions”, 36); joinedList.add(Myrecord); Myrecord2.put(“ad_id”, 8710); Myrecord2.put(“medium_type”, 2); Myrecord2.put(“impressions”, 1034); joinedList.add(Myrecord2); Myrecord3.put(“ad_id”, 9000); Myrecord3.put(“medium_type”, 2); Myrecord3.put(“impressions”, 10); joinedList.add(Myrecord3); System.out.println(“Myrecord:” +…

Details

Problem while installing iwlwifi on Ubuntu 16.04

I’m a new one on Ubuntu and using UP BOARD with Ubuntu 16.04 installed on it. I install iwlwifi according this: https://github.com/HappyZ/iw_intel8260_localization/wiki/Enable-802.11mc-FTM-on-Intel-8260 While installing, after “sudo make -j4”, I got many “symbolmap: 00000001: invalid section”,just like this: ”’ symbolmap: 00000001: invalid section CC [M] /lib/firmware/backport-iwlwifi/net/mac80211/aes_gcm.o symbolmap: 00000001: invalid section CC [M] /lib/firmware/backport-iwlwifi/drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.o symbolmap: 00000001: invalid…

Details

fstrim does not trim swap

I have set up an encrypted swap partition following this guide. My /etc/crypttab is set up like this (note the discard option on swap): rootfs UUID=<UUID_root> none luks,discard swap UUID=<UUID_swap> /dev/urandom swap,offset=2048,cipher=aes-xts-plain64,size=512,discard I also have allow_discards=1 in /etc/lvm/lvm.conf. However, when I do a manual trim, the swap doesn’t trim: #sudo /sbin/fstrim -av /media/win: 670.4 GiB…

Details