How to display data in a repository based on the quarter of the year? - angularjs

I am trying to sort data using angularJS by the quarter of the year on a premade widget through the CMS of a website. I've created the widgets, the data pulled is everything from a specific repository. I only want to pull items per quarter. Current quarter and then the last 3 quarters individually. I am new to angularJS so I'm not even sure where to start.
I've tried a few solutions from stack overflow but they cause the website to stop loading.
I hope this makes sense, very new to this language, kind of not sure where to start. The example code I was using was [https://stackoverflow.com/questions/30469577/angular-custom-filtering-by-date-quarter]
this is what it's supposed to look like. I can style it, not the issue. It's the backend I'm having trouble with.
screenshot of how the widget(s) should look. I've already written the widgets

Related

I am unable to make a commit inside my organization

Sorry if someone already asked this but I couldn't find it anywhere.
I have an issue with commiting my changes to already existing branch inside my organization.
We are building a simple movie app with React.js for couple months already, I did a few commits before and created couple branches without any problems, but after reinstalling my Windows 10 month ago, I have run into problems like this in the picture below:
first image second image
The second image has few thousands lines of error code for some kind of reason.
Thank you in advance.

How to build a simple flash-card website from scratch?

For my personal project, i want to build a simple website where there are questions(cards) and the user can input an answer. There is a list with the cards, which have searchable tags. So, how do i do it? I have tried using template sites, but i don't think they can do it.(since it's interactive)
This is absolutely possible. From a simple google search I came across some code using CSS animations that should get you started:
http://codrspace.com/kara/implementing-flashcard-flip-with-css3-transitions/
Now all that's left to do is to generate flashcards based on your data and add previous and next buttons. You're already halfway there!

extjs grid filter example not loading data

I'm attempting to learn a bit more about out how grid filtering works in Extjs.
I'm using the example that comes with the JS 4 download, i.e.
http://docs.sencha.com/ext-js/4-0/#!/example/grid-filtering/grid-filter-local.html
I can run it on my local server such that it displays the grid outline (with filter options in the column headers), but no data gets loaded at all. I was hoping that I could just use the local flag with the accompanying JSON file without the need to get involved with the SQLlite aspects, for a start.
I can't figure out why the JSON data isn't loading though. Any help, hints or tips would be much appreciated. I've spent ages on this, looking at other examples, both via here, Google and the Sencha website.
Mark as complete (see above) though I don't know detail on why it's started working.

WinForms.ReportViewer to display customerized item?

I am designing a reporting page using WinForms.ReportViewer and only process the data locally. It means we want to display some information from objects that we designed. For example, we have our own classes for date and time. However, in the report page this date and time information can not be displayed correctly (shows #ERROR). Is there any way to tell it how to show our information? Thanks!
With the newer ReportViewer versions, MS has introduced an error that disables the possibility for navigation within objecs.
They have corrected the error with the last service pack a little and if your objects support serialization, now navigation may work.
For my newer projects built with report viewer 2010, I have started to write a wrapper for each object/entity I have to render. I started with this during the time, no fix was available and now I'm very comfortable with this pattern. In the first moment, it gives a little more of work, but it has given me great flexibility and left my code clean. And if one day I dont have the patience to work further with report viewer anymore, it will make it easy to move my projects to another reporting engine.

display a calendar function on lots of different websites

first of all, please excuse my ignorance, this is an exploratory question, rather than a specific programming program that needs solving.
I have a number of clients that have unique websites, none of which I was involved in developing. I would like them to be able to display a calendar of common events, but which would also contain events unique to them.
Is it possible using something like Server Side Includes to be able to give them a few lines of code which they could insert into their website (on any particular page) which might display a calendar type display, which their users can then interact with?
I guess I am looking for something similar to a Google calendar but I do not want to use a Google calendar. The key thing would be that they would only need to insert the few lines of code on one of their webpages; they wouldn't have to install any software on their servers.
Any suggestions?
Thanks
Damien
There are are all sorts of web calendars that will allow you to include them on a web page (typically using javascript, not SSI). Some are targeted at specific platforms (ie, Wordpress) and some are more generic.
Try searching "web calendar widget" for examples.
You'd have to put some amount of content on their site. If you can do that, you can include some javascript that will load more javascript from the server side that can do the bulk of the calendaring work for you.
You wouldn't be able to just drop a few files on the server and have them work, you'd need some way to link to them by changing the existing content on at least one of the pages.
I may be misunderstanding your question though.
If you are looking for specific recommendations on web calendar widgets, Arshaw's fullcalendar is my favorite to date.
It displays a great calendar that can be easily styled with css or jquery ui themeroller and is very programmable. The website has great documentation and examples as well.
Per using it on different sites, it supports that easily.
Note, I'm not affiliated with that calendar at all, just a satisfied customer.

Resources