Google Calendar doesn't work with FullCalendar - fullcalendar

I can't get a public Google Calendar to work with FullCalendar. I keep getting this error. Their documentation is out of date, which they have acknowledged on their GitHub page. If anyone knows a possible solution or an alternative, I'm all ears.
fullcalendar.js:1800 Uncaught TypeError: g[r.substring(...)] is not a function
at u (fullcalendar.js:1800)
at l (fullcalendar.js:1780)
at je.formatDate (fullcalendar.js:1514)
at m.et.format (fullcalendar.js:1407)
at e (fullcalendar.min.js:6)
at u (fullcalendar.min.js:6)
at l (fullcalendar.min.js:6)
at je.formatDate (fullcalendar.min.js:6)
at m.et.format (fullcalendar.min.js:6)
at function.t.constructor.getEventTimeText (fullcalendar.min.js:7)

Related

Reticulate AWS Cogntito

This is my Python code (that I've checked and it works):
from warrant.aws_srp import AWSSRP
def auth(USERNAME,PASSWORD):
client = boto3.client('cognito-idp',region_name=region_name)
aws = AWSSRP(username=USERNAME, password=PASSWORD, pool_id=POOL_ID,
client_id=CLIENT_ID,client=client)
try:
tokens = aws.authenticate_user()
return(tokens)
except Exception as e:
return(e)
I'm working with R in order to create a visual interface for doing some operation (including this one) and it is a requirement.
I use the reticulare R package to execute Python code. I tested it with some dummy code in order to check the correct functioning (and it is okay).
When i execute the above function by running:
reticulate::source_python(FILE_PATH)
py$auth(USERNAME,PASSWORD)
i get the following error:
An error occurred (InvalidParameterException) when calling the RespondToAuthChallenge operation: TIMESTAMP format should be EEE MMM d HH:mm:ss z yyyy in english.
I tried to search a lot but I found nothing, I suppose that can exist a sort of wrapper or formatter. Maybe someone as already face this problem...
Thank a lot of any help.

Wordpress Error Message: Something went wrong when compiling less files. Operation on an invalid type

I was just setting up my wordpress site and I started to get an error on a white screen: Something went wrong when compiling less files. Operation on an invalid type
I disabled all plugins and activated them one by one - no change
I had recently upgraded to PHP 7.4 - I tested 7.3 and 7.0 - no change
I ran a debug and received the following error:
Deprecated: Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /xxx/xxxx/public_html/xxx.com/wp-content/themes/buddyapp/kleo-framework/lib/function-core.php on line 400
Hope you can help fix this. Thanks in advance.

ReferenceError: QUERY_LIMIT is not defined in Google Map Using Own Lats / Longs

Thanks for any help you can provide! I've got a directions tool that lets users map a route to a start, finish, and 8 waypoints. I've also got a separate map webpage that loads about 2000 markers from a JSON object that uses latitudes and longitudes (no geocoding). I'm trying to combine these two into one mapping tool.
The problem is that when I run the combined map, I get an error in my console:
ReferenceError: QUERY_LIMIT is not defined
if(status == google.maps.DirectionsStatus.OVER-QUERY_LIMIT){
I checked out OVER_QUERY_LIMIT error with latitude-longitude addresses but it didn't seem to apply to my problem. Any ideas about what might be causing this error? Again, I appreciate your help!
Here's the line of code it's complaining about, with whitespace added for clarity:
if( status == google.maps.DirectionsStatus.OVER - QUERY_LIMIT ) {
Now you can probably see why that gets a QUERY_LIMIT is not defined message.
Can you find that code in your page? Should it have _ where it has -, so it would read OVER_QUERY_LIMIT?

Passing parameters in .jcall

I have just started working with rJava to utilise a host of Java code in an R based application. I've tried some simple "Hello world" type things so I know the basic setup is working. I have several issues however I am hoping they will be resolved if I can resolve this basic problem using .jcall.
> cal = new(J("java/util/GregorianCalendar"))
> obj = new(J("au.gov.ips.dataarchive.TIndex"))
> obj$monthlyT(cal)
[1] 77
> .jcall(obj,"I","monthlyT",cal)
Error in .jcall(obj, "I", "monthlyT", cal) :
method monthlyT with signature (Ljava/util/GregorianCalendar;)I not found
To my understanding, the 3rd and 4th lines are equivalent and should produce the same result. Clearly I am doing something wrong. The 'monthlyT' method is defined in the java code as:
static public Integer monthlyT(Calendar month)
I am not a Java expert, so please let me know what other info about the Java objects I might need to provide to answer the question.
cal is a java.util.GregorianCalendar and not a java.util.Calendar. If you want to use the low-level .jcall interface (why?) then you need to do the casting yourself. So something like this:
.jcall(obj,"I","monthlyT",.jcast(cal, "java/util/Calendar" ))

Command completion in mathematica : suggest rules/options

In current version of Mathematica these keyboard shortcuts are quite handy
Ctrl+K completes current command
GraphPl -> press Ctrl+K -> GraphPlot
Ctrl+Shift+K completes current command and adds argument placeholders which could be replaced with actual values with tab key
GraphPl -> press Ctrl+Shift+K -> GraphPlot[{vi1->vj1,vi2->vj2,...}]
However I couldn't find any keyboard option to show associated settings/options
For instance Say If I need to plot a graph with different layouts, I know I need to set Method with one of these Possible settings
"CircularEmbedding"
"RandomEmbedding"
"HighDimensionalEmbedding"
"RadialDrawing"
"SpringEmbedding"
"SpringElectricalEmbedding"
Two things
First How to autocomplete these options , is there any shortcut key ?
GraphPlot[sg, Method -> <what keyboard shortcut to display all possible options>]
Second how to generate following PopupMenu list programmatically
list={
"CircularEmbedding"
, "RandomEmbedding"
, "HighDimensionalEmbedding"
, "RadialDrawing"
, "SpringEmbedding"
, "SpringElectricalEmbedding"
}
Manipulate[GraphPlot[sg, Method -> m], {m, list}, ControlType -> PopupMenu]
Is there any way to introspect Mathematica functions and access method Metadata similar to the way it could be done in other programming languages, Like using reflection in Java ?
I don't believe there is any included function to auto-complete a string. I also cannot recall a way to view all valid settings for a particular option, other than searching the help files.
You can expedite input with the Options Inspector settings InputAliases and InputAutoReplacements, allowing entry by EsctxtEsc or txtSpace.
Draft : work in progress ...
This is the nearest I could reach so far, though It needs loads of enhancement, Adding it as it is hoping to get some Ideas from community. If anyone could help enhance it further, Or suggest any Idea, It would really be appreciated.
ruleOfRule[list_] := Map[Rule[#, #] &, list];
Manipulate[
GraphPlot ## {{"A" -> "B", "B" -> "C", "C" -> "A"},
options}, {{options, {}}, ruleOfRule[Options[GraphPlot]]},
ControlType -> CheckboxBar]

Resources