## Sharepoint calendar webpart connected with filter

I have a requirement in SharePoint Online/Office365 in which following things are needed.

Calendar list with custom field “Category”, type is choice (Holidays, Events, Others) Need to creates as a drop down in which above field’s value should bind.The View to be used is Calendar View, I have already tried SharePoint list filter and list view webpart but only AllEvents view is supported and Calendar view is not. I strictly want to use Calendar View. Is there any way to do it?

Any help would be appreciated.

## Adding edges to a DAG to make it strongly connected with minimum cost

I have a weighted DAG and a function computing the weight of edges that is not connected in the DAG. The weight of u to v equals to the weight of v to u.

I want to connect edges to make the DAG strongly connected with minimum total weights of added edges.

I know that the minimum number of added edges equals to $$\text{max}(|source|, |sink|)$$ but which vertex connects to which vertex that the total weights is minimum?

## Get french accent on Linux terminal connected via ssh from MacOS High Sierra

I come on this forum since no answers or suggestions on other forums.

I am often connecting from a MacOS High Sierra terminal via SSH to a Debian 8.0. The locales on my MacOS are :

LANG= LC_COLLATE="en_US.UTF-8" LC_CTYPE="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_ALL="en_US.UTF-8" 

Everything on MacOS side works fine, I can type on this MacOS terminal all french characters, even combined for example to get “ê” character with key “^+e”.

My issue is that I am often connected via to a Debian 8.0 and I can’t get to have french accents like I have on MacOS.

I have done on Debian 8.0 :

# locale-gen  Generating locales (this might take a while)...   fr_FR.ISO-8859-1... done   fr_FR.UTF-8... done   fr_FR.ISO-8859-15@euro... done 

So the locales on Debian 8.0 are :

locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_CTYPE="fr_FR.ISO8859" LC_NUMERIC="fr_FR.ISO8859" LC_TIME="fr_FR.ISO8859" LC_COLLATE="fr_FR.ISO8859" LC_MONETARY="fr_FR.ISO8859" LC_MESSAGES="fr_FR.ISO8859" LC_PAPER="fr_FR.ISO8859" LC_NAME="fr_FR.ISO8859" LC_ADDRESS="fr_FR.ISO8859" LC_TELEPHONE="fr_FR.ISO8859" LC_MEASUREMENT="fr_FR.ISO8859" LC_IDENTIFICATION="fr_FR.ISO8859" LC_ALL=fr_FR.ISO8859 

I have also tried with :

# locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=fr_FR@euro LANGUAGE=en_US.UTF-8 LC_CTYPE="fr_FR.ISO8859" LC_NUMERIC="fr_FR.ISO8859" LC_TIME="fr_FR.ISO8859" LC_COLLATE="fr_FR.ISO8859" LC_MONETARY="fr_FR.ISO8859" LC_MESSAGES="fr_FR.ISO8859" LC_PAPER="fr_FR.ISO8859" LC_NAME="fr_FR.ISO8859" LC_ADDRESS="fr_FR.ISO8859" LC_TELEPHONE="fr_FR.ISO8859" LC_MEASUREMENT="fr_FR.ISO8859" LC_IDENTIFICATION="fr_FR.ISO8859" LC_ALL=fr_FR.ISO8859 

I don’t see where is the problem, anyone could help me to have french accent on Debian terminal from my MacOS keyboard like I have on my MacOS terminal ?

I tried the solution suggested by @Spiff by doing :

 $locale-gen "en_US.UTF-8" Generating locales (this might take a while)... en_US.UTF-8... done Generation complete.$   locale  LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C" LC_PAPER="C" LC_NAME="C" LC_ADDRESS="C" LC_TELEPHONE="C" LC_MEASUREMENT="C" LC_IDENTIFICATION="C" LC_ALL=C 

But this doesn’t seem to work since when I type on french accent character, nothing displays.

I have found a partial solution : if I put into a new file ~/.bash_profile :

LANGUAGE="en_US.UTF-8" 

Then, I can type french accent characters.

But now, the issue is that I have no more the file ~/.bashrc executed (so no more environments variables, no alias, nothing more).

If I do at the end of ~/.bash_profile : source ~/.bashrc, nothing happens.

How to circumvent this issue and make take into account my ~/.bashrc file ?

Thanks

## Can two connected sockets be listening to each other?

I’m dealing with the situation when both the client and server are responding to various events from the user and need to be able to notify each other about these events. However, in socket communication, only one (the server) is calling socket.listen() thus it cannot initiate communication, but can only respond to messages from the client. What if the server needs to inform the client of a particular event? Is the only solution to open two sockets on two different ports, so that both can simultaneously listen()? Thank you very much in advance.

## Strongly Connected component algorithm implementation(Python)

My goal is to implement Strongly Connected Components algorithm using python. I have splitted up my code on 3 parts:

import csv as csv import numpy as np import random as random import copy as copy import math import sys, threading import time sys.setrecursionlimit(800000) threading.stack_size(67108864)  start = time.time()  num_nodes = 160000 graph = [[] for i in range(num_nodes)] reverse_graph = [[] for i in range(num_nodes)] graph_2_step = [[] for i in range(num_nodes)]  file = open("C:\Users\yefida\Desktop\Study_folder\Online_Courses\Algorithms\Project 5\test7.txt", "r")  data = file.readlines() for line in data:     if line.strip():         items = line.split()           if int(items[1]) not in reverse_graph[int(items[1]) - 1]:                reverse_graph[int(items[1]) - 1].append(int(items[1]))              reverse_graph[int(items[1]) - 1].append(int(items[0]))          else:             reverse_graph[int(items[1]) - 1].append(int(items[0]))             if int(items[0]) not in graph[int(items[0]) - 1]:                graph[int(items[0]) - 1].append(int(items[0]))              graph[int(items[0]) - 1].append(int(items[1]))          else:             graph[int(items[0]) - 1].append(int(items[1]))    for i in range(len(graph)):     if len(graph[i]) == 0:         graph[i] = [i+1,i+1]     if len(reverse_graph[i]) == 0:         reverse_graph[i] = [i+1,i+1]   end = time.time() time_taken = end - start print('Time: ',time_taken) 
2. Depth-first search algorithm on the reversed graph:

#2. Run DFS-loop on reversed Graph: start = time.time()  t = 0 # for finishing lines: how many nodes are processed so far s = None # current source vertex explored = set() finish_time = {}    def DFS(graph,node):     explored.add(node)     global s      for vertex in graph[node - 1][1:]:         if vertex not in explored:             DFS(graph,vertex)          global t     t+= 1     finish_time[node] = t  #Nodes starts from n to 1 for i in range(max(reverse_graph)[0],0,-1):     if i not in explored:         s = i         DFS(reverse_graph,i)  #Mapping to the new list in increasing order for edge in range(len(graph)):     for vertex in range(len(graph[edge])):         graph[edge][vertex] = finish_time[graph[edge][vertex]]      graph_2_step[graph[edge][0] - 1] = graph[edge]    end = time.time() time_taken = end - start print('Time: ',time_taken) 
3. Depth-first-search algortihm on the graph after step 2:

start = time.time() #3. Run DFS-loop on Graph with original directions(but with labeled finishing times): all_components = []#Saves all strongly connected components all_comp_elem = set()#check if element is in Strongly Connected Components(already explored) SCC = set() # strongly connected component, that will be saved in "all_components" explored= set() # variables, that are already explored  next_elem = 0 # contains information how many elements have to be checked, before making a decision  #c)modification of DFS def DFS_2_Path(graph,node):     global all_components     global SCC     global next_elem     explored.add(node)#node is explored       next_elem += len(graph[node - 1][1:]) # add number elements, that must be explored from the current node      #checking one vertex -> minus one element that must be explored     for vertex in graph[node - 1][1:]:         next_elem -= 1         #check if element is in Strongly Connected Components(already explored)         if node not in all_comp_elem:             SCC.add(node)          #if vertex is not explored, than reccursion and go to the next vertex         if vertex not in explored:                   SCC.add(vertex)             DFS_2_Path(graph,vertex)            #if vertex is not the last element in the chain(Ex: [6,5,1,7] -> 6 is a main Node, and 7 is the last element, to which     #node 6 is connected)             elif vertex in explored and vertex != graph[node - 1][1:][len(graph[node - 1][1:]) - 1]:             continue         #if vertex is the last element in the chain(Ex: [6,5,1,7] -> 6 is a main Node, and 7 is the last element, to which     #node 6 is connected) -> update stringly connected components              elif vertex in explored and vertex == graph[node - 1][1:][len(graph[node - 1][1:]) - 1] and next_elem == 0:             all_components.append(SCC)             all_comp_elem.update(SCC)             SSC = set()  #Main loop             for i in range(max(graph_2_step)[0],0,-1):     if i not in explored:         DFS_2_Path(graph_2_step,i)    end = time.time() time_taken = end - start print('Time: ',time_taken) 

I have tested my algorithm on different test cases -> it works correct. First two parts of the algorithm work fast(on the data set with 160000 nodes). But when I run the third part -> kernel in Jupyter dies.

I have improved the speed of the code as much as I could. I definitely need a fresh look on my code.

P.S Don’t look at first 2 parts of the code. I provided them to you only for the test, if you want to test.

P.S.S The link to the file, that I have used for the test: https://github.com/beaunus/stanford-algs/blob/master/testCases/course2/assignment1SCC/input_mostlyCycles_64_160000.txt

## Leap Motion : Leap service running, “Leap Service not connected” in Unity3D, connected in SteamVR

I’m having trouble to use Leap Motion with Unity3D on one of my machines.

Unity doesn’t see Leap Service running : Leap Service not connected

Both computers run the same version of the software: Unity 2018.2.15.f1 and Orion 3.2.1

• The Leap Service is running fine on the PC – I tried also to start and stop it manually, it didn’t affect the results

• I installed and re-installed the drivers below – in the SteamVR window, I see the controllers, and they do stop blinking when the hands are in front of the sensor

• https://github.com/cbuchner1/driver_leap (original one)
• https://github.com/SDraw/driver_leap (updated one)
• When opening the Diagnostic Visualiser, the hands show just fine

• I tried connecting the Leap to the headset and to different USB ports, didn’t change anything

• When running the same project on the other PC, leap motion hands are displayed in Unity normally

## Mac mini server periodically dumps all connected file-sharing users

This has been an ongoing problem since I set up this server about a year ago. It comes and goes, sometimes it happens multiple times a day, sometimes it goes stretches where it has no problems at all. Here is the setup:

A new 2014 Mac mini with 8 GB of RAM and a 250 GB SSD drive. The SSD is the boot drive and the storage drive where the shared folders live. There’s also a 2 TB HDD in the hard drive bay that stores Time Machine backups for the other machines on the network.

There are at most 3 users in the office, connected to both of the two shared folders, plus all these Macs use the server’s 2 TB drive for time machine backups.

There’s another two people that connect to the server’s VPN and access it that way at night sometimes.

The server runs file sharing for these two folders and the backup folder. It has its built in VPN server activated with appropriate port mapping so you can connect through their static IP and get right to the server’s VPN. It also runs FileMaker server, and apache/mysql. But they only run a very simple and very low traffic website on the machine.

All of these machines are connected via ethernet to a gigabit switch. It’s a pretty simple setup that should run very well, especially since the mini is running on SSD.

The Problem:

So what happens is, without any warning, the clients will all at the same time, get the beachball. They constantly work with files on the server, opening them directly. So what seems to be happening is that the server is loosing its network connection. Unfortunately I’m never on location when this happens so it’s hard for me to diagnose it. I thought it might be a bad ethernet port or switch. So I switched the server over to Wifi as a test. The problem seems to still happen. Everything else seems to be fine when it happens. Also this machine was on 10.13 High Sierra when I first set it up. I have since upgraded it to 10.14 Mojave and it has the exact same issues. They have to reboot the server to get file sharing back up and working, they are unable to reconnect to a ‘dumped’ shared folder. The server itself is not beach-balling or otherwise locked up. They are able to reboot it easily.

It almost feels like something is trigging a firewall on the server that is causing it to suddenly block incoming connections. The server is behind NAT so it’s firewall is (should be) turned off entirely. This is a very strange problem.

What I’m not 100% sure about is, if the server can still access the internet during one of these episodes, and if the connected users can still access FileMaker Server during one of these episodes. I think they can but I’m not certain because I only hear second hand reports from non-techy people.

Switches can always go bad, and this office has had issues with questionable hardwiring in the past. But if the problem was the switch or the ethernet runs, moving the server to wifi like I did should mean that clients would have problems SEPARATELY, and not at the exact same time.

I also make a script that runs every 90 seconds and logs the current local IP address, and the result of one ping from the server to it’s router, and from the server to my server (over the internet). I was hoping to get some clear results from that, but the results seem to be fairly random when an “episode” is happening. It never seems to drop its IP (via DHCP). But sometimes it can’t ping it’s router, but it can ping a server across the internet. Sometimes the opposite is true. Sometimes both pings fail.

I don’t think there is a hardware problem in a Mac that can cause such a specific issue, over both wifi and ethernet, while otherwise running perfectly 24 hours a day. It seems like it has to be either some kinda of weird hardware glitch, or some kind of infrastructure problem at the office that is manifesting itself in unusual ways.

Also note that Server.app is not running on this machine. Why bother since they removed all services from it.

## Get field from infopath form and populate in new row of connected list

So I have an info path form and a connected list on an edit page.

I have set this connected list up through some java script to automatically go into edit mode. It is also filtering values properly based on data in the info path form.

What I am looking to do is to default a value in a column based on the data in the info path form.

## How can I test that the antennas in Macs are all connected and working?

I’m a technician repairing Macs every day and I test the Macs after repair (laptops and desktops) .

So what I do is a functional test of the Mac by logging in to macOS and testing everything: camera, keyboard, WIFI, Bluetooth etc. My doubt is: how can I test that the 2, 3 or 4 antennas (depending on the Mac model) are connected?. I know that one of them does the Bluetooth while usually all of them add up to the WIFI bandwidth. I know how to check the Bluetooth connection, but, how can I check the WIFI antennas are all connected and detected by the wireless card?

I thought I may run some WIFI speed test able to test the download/upload speed to the router, but I’ve never used this. Any advice on a good WIFI speed test (free if possible)? Would this be the best way to check that the antennas are all connected and that the wireless card in the Mac is detecting all the antennas properly?

Here’s a post explaining how the antennas work (if that helps): What's the difference between the three wireless antennas in MacBook Pros?

Any help much welcome

## NL problem? $CONN$= {$〈G,k〉$ ∶$G$ is undirected graph with at least k connected components}

Consider the following decision problems:

$$CONN$$= {$$〈G,k〉$$$$G$$ is undirected graph with at least $$k$$ connected components}
$$E-CONN$$= {$$〈G,k〉$$$$G$$ is undirected graph with exactly $$k$$ connected components}

I’d like to show this two problem are in $$NL$$. I Know it’s possible to guess a vertex from each connected component and then verify the connectivity of the component (by guessing paths to other vertices). But how can I verify all guessed vertices are different, when it’s impossible to hold $$k$$ vertices on the work tape?