on-internet

EDGAR SEC 10-K Individual Sections Parser

Do you know of any API, tool, or Python package which can parse individual sections SEC 10-K filings? I'm looking for the individual sections of 10-K filings (e.g. ITEM 1: Business, ITEM 1A: Risk Factors, etc) separated from the entire 10-K filing and preferably cleaned from any page headers (company name), footers (page number) and tables containing mostly numeric data. I've written a parser in python using BeautifulSoup for entire 10-K statements but dividing them into individual sections is looking to be quite challenging - not impossible though. I've found https://jodie.ai/hi/ which has th

Join the discussion →

Agora vs Bigbluebutton - Best solutions for Web RTC for conducting online classes?

We are working on integrating a live video class room environment on our website. We have explored a couple of solutions - Bigbluebutton on the opensource end of the spectrum and Agora, Zoom towards the high price per minute end. We have started off the project with Bigbluebutton - but have some concerns - does Bigbluebutton scale well when we have 1000 concurrent users/sessions. Would appreciate if anyone can help us do a comparative analysis.

Join the discussion →

How do I preserve side data when concatenating files in ffmpeg?

I have multiple 360 videos that I'm trying to concatenate in ffmpeg. The command it self is pretty straightforward: ffmpeg -f concat -i 0036_concat.txt -c copy -strict unofficial 36.mp4 where 0036_concat.txt is just a list of the individual files. The issue I'm having is that I can't get ffmpeg to preserve side data. Very simply put, ffprobe on any of the source files includes this: Side data: spherical: equirectangular (0.000000/0.000000/0.000000) And I can't, for the life of me, get that to propagate to the output file. this question has a solution that works for single files, but it doesn't

Join the discussion →

Java iTunes COM interface Jacob - Get PersistentIDs (PersistentIDLow and PersistentIDHigh)

I have some problems to understand the iTunes COM interface with Jacob in reference to the PersistentIDs (PersistentIDLow and PersistentIDHigh) to identify playlists and tracks by unique key in iTunes. I hope someone can tell me what I'm doing wrong. Here is my code example to read one playlist List 1 of iTunes. The example shows in comments the trial to read the PersistentIDs for the playlist List 1 and for every track of the playlist. But the Dispatch doesn't work, see code lines with comment "doesn't work". Exception in thread "main" com.jacob.com.ComFailException: Can't map name to dispid:

Join the discussion →

Round down operation result in IEEE 754

For operations using single precision values in IEEE 754 (float, 32bit), is there a way to somehow condition the two operands to ensure that the operation result is rounded down, when an exact result is not possible? In other words, how can I force round to -Inf? Example: Typical result (using 'round to nearest'): 1.0f / 3.0f = 0.3333333432674407958984375f Expected result (using 'round down'): 1.0f / 3.0f = 0.333333313465118408203125f As additional info, I would be doing this in C99, and (unfortunatly) it's not possible to configure the FPU.

Join the discussion →

KrbException: Do not have keys of types listed in default_tkt_enctypes available

I'm getting this execption every time I run the command : kinit -k -t C:\Users\XXXX\user.keytab MYUSER Here is the execption C:\Users\XXXX>kinit -k -t C:\Users\XXXX\user.keytab MYUSER Exception: krb_error 0 Do not have keys of types listed in default_tkt_enctypes available; only have keys of following type: No error KrbException: Do not have keys of types listed in default_tkt_enctypes available; only have keys of following type: at sun.security.krb5.internal.crypto.EType.getDefaults(EType.java:280) at sun.security.krb5.KrbAsReqBuilder.build(KrbAsReqBuilder.java:261) at sun.security.krb5.KrbAs

Join the discussion →

sum of column in XML publisher

I have a column I am getting in the RTF TEMPLATE that calculates the sum by using -<?sum(current-group()/PAYMENT[../PAYMENT != ''])?> ***Tax deduction*** Description current YTD Voluntary `<?sum(current-group()/PAYMENT[../PAYMENT != ''])?>` `<?sum(current-group()/YEAR)?`> Involuntary <?PAYMENT?> `<?sum(current-group()/YEAR)?`> Pre tax `<?sum(current-group()/PAYMENT[../PAYMENT != ''])?>` `<?sum(current-group()/YEAR)?`> I want to calculate the sum total of the current value and YTD column value. How can I do that?

Join the discussion →

How can I find the indices equivalent to a specific selection of xarray?

I have an xarray dataset. <xarray.Dataset> Dimensions: (lat: 92, lon: 172, time: 183) Coordinates: * lat (lat) float32 4.125001 4.375 4.625 ... 26.624994 26.874996 * lon (lon) float32 nan nan nan ... 24.374996 24.624998 24.875 * time (time) datetime64[ns] 2003-09-01 2003-09-02 ... 2004-03-01 Data variables: swnet (time, lat, lon) float32 dask.array<shape=(183, 92, 172), chunksize=(1, 92, 172)> Find the nearest lat-long df.sel(time='2003-09-01', lon=6.374997, lat=16.375006, method='nearest') Need to find The indices of this particular location. Basically, the row-column in the grid. What would

Join the discussion →

How can one use the command-line to use openvpn on windows?

I have been trying to come up with a way to interact with openvpn on windows. I did fine the openvpn.exe but there are no commands that will use a config file to connect with a vpn server. I am using nordvpn by the way. Specifically a tcp Canadian server. I did find some people suggesting to use the openvpn-gui.exe to run the program but it defeats the purpose. I want t to completely be on command line. Secondly, i need the command line to work as i want to integrate openvopn into a script which will download stuff from the internet. Anyone with any idea how to do it?

Join the discussion →

Error TestEngine with ID "junit-vintage" failed to discover tests when using Intellij

I'm working on a group project and am trying to run a test. When running it I get the error in the file along with org.junit.platform.commons.util.PreconditionViolationException: Could not load class with name ... I've tried invalidating caches and restarting and I've also tried re-importing the pom.xml file but I'm still getting the error when trying to run a test. Any help would be much appreciated. I'm using intellij IDEA 2019.2.4 (Community Edition) Error that Intellij is showing WARNING: TestEngine with ID 'junit-vintage' failed to discover tests org.junit.platform.commons.util.Preconditi

Join the discussion →

Send mail via Java API for Office 365

I am developing a Java application that will send mail to multiple recipients via Java Mail API(1.6.2). I have configured the SMTP as per the Microsoft docs. The problem is the code is working with my personal Hotmail email ID but it fails for my corporate Office 365 account: Error: javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful [PN1PR0101CA0066.INDPRD01.PROD.OUTLOOK.COM] POP and IMAP are working (receiving mails), and I can log in with the password in Office 365 Web. I have tried changing the password too. Code: User user = Credentials.ACC; Properties props =

Join the discussion →

for loop failed to synthesize using oasys

I have no idea why this piece of code failed to synthesis using the oasys tool: for (i = 0; i < N; i = i + 1) begin if( i >= counter & i < new_pos) out[i] <= bit; end where counter, out are reg, and new_pos is wire for full code module provided below: module decompressor #(parameter N = 32)(clk , reset , start , bit , value , store , out); input clk,reset,start,bit; // start decompress , bit is the value to be added input [$clog2(N):0] value; // value is counter for the decoded bit output reg store; // Store to acknwoledge memory manager output reg[N-1:0]out; // out is decoded data reg [$clog2

Join the discussion →

Blazor : System.InvalidOperationException: 'RemoteNavigationManager' has not been initialized

I'm using Blazor Server on a ASP.NET Core MVC 3.1 website for some components that need Blazor power. Everything works fine, however, I'm not able to navigate from a Blazor component to an ASP.NET MVC route. For navigation, I've set the following property : [Inject] public NavigationManager NavigationManager { get; set; } When I call NavigationManager.NavigateTo("/games/details/" + gameId, true), I have the following error : Error: System.InvalidOperationException: 'RemoteNavigationManager' has not been initialized. at Microsoft.AspNetCore.Components.NavigationManager.AssertInitialized() at Mi

Join the discussion →

ORA-64219: invalid LOB locator encountered

We migrated from oracle c12 to c19. And now we have simple test case that fails: //arrange string data = new string('x', 5000); var connection = tm.GetConnection(); var createTableCmd = connection.CreateCommand(false); createTableCmd.Text = "CREATE TABLE xx_temp (id NUMBER, text_long NCLOB, text_short NVARCHAR2(2000))"; createTableCmd.ExecuteNonQuery(); //act var insertCmd = connection.CreateCommand(false); insertCmd.Text = "INSERT INTO XX_TEMP (text_long) VALUES (@p1)"; var param = new OracleParameter("@p1", OracleDbType.NClob, data.Length, System.Data.ParameterDirection.Input); param.Value =

Join the discussion →

Is there a method for page numbering by chapter in LibreOffice Writer?

Writing a user-manual that is written in chapters, each describing a different aspect of the functions. Some of those functions are ready and closed, some still in development or ready but not described yet. Those have to follow the application menu's order, so often will be inserted somewhere in the middle of the document. A new index by chapters is made, a new alphabetical index as well. Each time the page numbering of the existing chapters is changed as well. That forces me to run a new PDF and a full new paper version. When I could number by chapter, I could offer the two new indexes plus

Join the discussion →

How to merge multiple OpenAPI specifications?

I'm digging here around trying to find a solution, how to merge several OpenApi v3 component definitions in one file. Let's imagine a situation: You decided to split your OpenApi into multiple files in different folders. (see image below) Now you need to combine all your components.v1.yaml into a single schema (i named it blueprint.v1.yaml). Usually, I use swagger-cli to merge all $ref dependencies, but now it's not a case, because I can not refer to the whole components/schemas object list And use it to build a single OpenApi file with all fields filled: info, components, paths and so on with

Join the discussion →

I'm adding a "templated non-member function" to a .h file. Why isn't my program outputting anything after I've added the code below:

This function is takes in two arguments, a vector of type Vec<T> and an element of type T, and returns the number of elements that matched the argument and were successfully removed from the vector. The order of the other elements should stay the same. I've added this to the .h file and tried to call this function from a test.cpp file with the lines: int num_ele = remove_matching_elements(v, 22); cout << num_ele << endl; //where v is {11, 22, 33, 11, 55, 33} template <class T> int remove_matching_elements(Vec<T>& v, const T& t) { int counter = 0; int i; for(i = 0; i < v.size(); i++){ if(v[i] =

Join the discussion →

Blazor - Change UI CultureInfo at runtime

I need to change cultures at runtime according to resource files for each culture. Expected User clicks a button that switches from current language to the other language. The texts in the page are refreshed according to resource files for each culture. Actual User clicks a button that switches from current language to the other language. The texts in the page are refreshed according to resource files for each culture. As soon as the user does any action on any component (I have several radio buttons, buttons and checkboxes) the texts go back to what was written in the first time. It's like th

Join the discussion →

Asterisk channel variable persistence when transferring calls

Using Asterisk as the PBX for a client and they have a situation I can't seem to program my way around. They have taken in a bunch of DDI's to act as an agent for a number of companies - almost like a secretarial type situation. What the client wants is an easy way to transfer this to the intended company (they understand they'll be paying for the outbound leg of the call). They don't want a huge pause while someone looks up the number in an online directory etc. This is a huge use-case for click-to-call but I can't find a way to tie the extension to the workstation of the user easily (that th

Join the discussion →

pip install generates ERROR: Command errored out with exit status 1

I keep getting this while trying to install PyGObject for Python 3.7 in Pycharm. I at first got the error where cl.exe couldn't be found, but I did some research and would that apparently C++ toolkit was missing even though I could locate cl.exe. I reinstalled pip, toolkit, and added cl.exe to PATH, and this new error came up: ERROR: Command errored out with exit status 1 Command: Collecting PyGObject Using cached PyGObject-3.36.0.tar.gz (714 kB) Installing build dependencies: started Installing build dependencies: finished with status 'error' ERROR: Command errored out with exit status 1: com

Join the discussion →

Constructor and Destructor for static member variable (a pointer)

I am working on a class ex1 which needs one static member variable y. That static member variable is a pointer to an object of class ex2 which has its own constructor and destructor. Now I know how to initialize the variable y by defining it outside the class. But how to call the destructor for variable y? I need to use delete statement, but where to place that statement. I need to call both constructor and destructor of class ex2. An equivalent code of my problem is shown below with the output: #include<iostream> class ex2 { public: int n; ex2(int num) { n = num; std::cout << "Constructor of

Join the discussion →

Is it possible to schedule the data refresh of a power query in excel to refresh data at 2 specific times every day?

I built a power query in Excel that pulls data from the newest file in a shared folder. It is an "OLE DB Query" with an SQL command type (not sure if that is relevant information but thought I would include it.) The file is updated with new data automatacically and is saved out manually (unfortunately, not always using the same naming convention) in the shared folder twice per day (around 9:45AM and 4:30PM). I would like to make the query refresh at those times; however, when I go into the Query Properties under "Usage" and then under "Refresh Control" the only options are: "Enable Background

Join the discussion →

Don't Summarize Option Problem In Power BI

I have 4 Columns, First is Date type which will be Axis Value (X- Axis), 3 Decimal Type Value (Values Field) which will represent as Line Chart i.e. 3 Lines inside the chart. Problem? When I drag and drop the Decimal Type Value inside the Values Field in Line Chart, it takes as SUM. I already selected Don't Summarize in Column tools tab with Uncategorised as Data Category. The problem is when I click the down arrow in the Values Field, it doesn't shows "Don't Summarize" Option. Now I need my data as it is, no sum no count, nothing. How Can I achieve that?

Join the discussion →

Call external API with Cloud Function and create document

I'm trying to create some cloud functions to: call Google Directions API using Axios create a document at Firestore based on the API result Return the document reference to my iOS App. (I'm on Blaze plan, pay as you go) I'm having trouble to create the following functions as my Node / JS knowledge is very basic. Could someone please have a quick a look and let me know what I'm missing? Obs.: The code is deploying to firebase with no warnings and erros. I'm pretty sure that the problem is the way that I'm trying to return my callbacks. Thanks in advance EDIT I've made a few changes on the code,

Join the discussion →

Is there a simpler test for leap year in C?

Is there any shorter logic than this to achieve leap year test with fewer conditions? #include <stdio.h> int isleap(int year) { return (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)); } int main() { for (int year = 1600; year <= 2020; year++) { printf("%d: %s\n", year, isleap(year) ? "Leap Year" : "Not a Leap Year"); } return 0; }

Join the discussion →

ldapadd fails with error: Inappropriate authentication (48)

I'm trying to add an organization with ldapadd command and I keep getting Inappropriate authentication (48) error. My command - ldapadd -x -D "cn=Directory Administrators,dc=mit,dc=example,dc=com" -W -f my_org.ldif This is what I get - Enter LDAP Password: ldap_bind: Inappropriate authentication (48) This is my ldif file - my_org.ldif dn: cn=em,dc=mit,dc=example,dc=com ou: em objectClass: top objectclass: organizationalunit This is my output for ldapsearch -x -w -D 'cn=Directory Administrators,dc=mit,dc=example,dc=com' -b 'dc=mit,dc=example,dc=com' '(objectclass=*)' # extended LDIF # # LDAPv3

Join the discussion →
Older stories