White privilege and all, but I had honestly never gave it a second thought. And the images that go through my mind hearing it are more dystopian future ruled by android type things over all humans, tbh. lol
e: well, that's a hell of a top post
e: well, that's a hell of a top post
To be 💯 it was probably because I was around a bunch of white dudes who obv didn't mean no harm. It just felt awkward
I don't understand why Visual Studio doesn't compile projects that have dependencies on a project that has changed. If I change something in Project A and Project B has a dependency on A then obviously I'd want Project B to be compiled as well, not just Project A. At least it would be nice to have the option for that.
By Suen Go To PostI don't understand why Visual Studio doesn't compile projects that have dependencies on a project that has changed. If I change something in Project A and Project B has a dependency on A then obviously I'd want Project B to be compiled as well, not just Project A. At least it would be nice to have the option for that.If, in your example, you compiled B, then A would automatically be compiled at the same time.
Forward compiling (don't know if that's the right term) like you want could cause what you thought was a simple build to take upwards of an hour, depending on how big the project is and the speed of your machine.
By Kibner Go To PostIf, in your example, you compiled B, then A would automatically be compiled at the same time.That requires me to build Project B when I'm only working on Project A which is what I don't like. Either I'd need to rebuild Project B or rebuild the entire solution. I've solved my problem by including a post-build command for Project A that does the stuff I want but I just feel it should be better than this. I mean you bring up a good point, the possibility of making extremely long builds by mistake would be there, but then it would be nice to have an option for it.
Forward compiling (don't know if that's the right term) like you want could cause what you thought was a simple build to take upwards of an hour, depending on how big the project is and the speed of your machine.
By reilo Go To PostSpeaking of Visual Studio: https://www.visualstudio.com/vs/visual-studio-mac/Is VS on Mac good? Been thinking of trying it, although Xcode has pretty nice tools that VS lacks.
By reilo Go To PostPretty sure it just came out today given that MS held their dev conference earlier.Oh wasn't aware of it. I thought it released a few months ago.
By Suen Go To PostThat requires me to build Project B when I'm only working on Project A which is what I don't like. Either I'd need to rebuild Project B or rebuild the entire solution. I've solved my problem by including a post-build command for Project A that does the stuff I want but I just feel it should be better than this. I mean you bring up a good point, the possibility of making extremely long builds by mistake would be there, but then it would be nice to have an option for it.
I mean, auto building any project that references yours, could take days. You could have a repo that is referenced by dozens of projects.
I would think that would be terrible compiler / IDE design by default.
By giririsss Go To PostI mean, auto building any project that references yours, could take days. You could have a repo that is referenced by dozens of projects.Sure by default it would be terrible yes but if I know I always want specific projects to auto-build when another project has changed then it would be nice to have an option, or something like the configuration manager where you can decide whether a project should be built or not.
I would think that would be terrible compiler / IDE design by default.
Ever run into a limitation imposed by one of your tools that makes you just throw your hands in the air with frustration and resignation?
I'm creating some reports using Telerik Reporting. The client wants to be able to print the report in .pdf format. Which is fine. One of the reports uses a crosstab which means the number of columns is dynamic, depending on the data. When printing to .pdf, Telerik uses a physical page size and their crosstab control simply increases the width of the report in order to fit all its columns.
Since the number of columns is dynamic, they can exceed the physical page width. The crosstab control is smart enough to print on the next page. However, since it increases the page width, however many extra pages the crosstab extends to, there will be that many blank pages before the crosstab.
So, I can either figure out a workaround for this (there does not appear to be any non-trivial one) or I can tell the client to just print the report in .xlsx format if he doesn't want blank pages.
I think I'm going to go the Excel route.
I'm creating some reports using Telerik Reporting. The client wants to be able to print the report in .pdf format. Which is fine. One of the reports uses a crosstab which means the number of columns is dynamic, depending on the data. When printing to .pdf, Telerik uses a physical page size and their crosstab control simply increases the width of the report in order to fit all its columns.
Since the number of columns is dynamic, they can exceed the physical page width. The crosstab control is smart enough to print on the next page. However, since it increases the page width, however many extra pages the crosstab extends to, there will be that many blank pages before the crosstab.
So, I can either figure out a workaround for this (there does not appear to be any non-trivial one) or I can tell the client to just print the report in .xlsx format if he doesn't want blank pages.
I think I'm going to go the Excel route.
major props to Kibner for assisting me with my Java homework lol, explained so many useful things in the process
+1000 rep
+1000 rep
Just be sure to stay away from using global variables unless you have a good reason to. Pass variables into functions more often and your code will be easier to understand. :)
By Kibner Go To PostJust be sure to stay away from using global variables unless you have a good reason to. Pass variables into functions more often and your code will be easier to understand. :)You'll know where they came from and what they are.
Remember LaTeX being a bitch to get working but that was like 8 years ago. Assignments, scientific reports and whatever came out great tho once you knew how to use it.
By giririsss Go To PostYou'll know where they came from and what they are.and keep your functions small, makes it easier to read and easier to debug.
By Suen Go To Postand keep your functions small, makes it easier to read and easier to debug.Haha, yup. I covered that with Phaze, as well.
And LaTeX owns bones. Definitely a learning curve to use. Pretty easy to install now. Only takes a long time if you try to download a billion different libraries/extensions. Lol
By Kibner Go To PostIs this going to be part of the Creator's Update?
By Gattsu25 Go To PostIs this going to be part of the Creator's Update?Believe so?
WHAT THE FUCK HEROKU? HOW DO YOU SCHEDULE API MAINTENANCE AT 4PM PACIFIC TIME?! The flying motherfuck?????
I always found the "submit a github profile" thing ... stupid.
Wouldn't 90% of developer be submitting to their private work repository?
Wouldn't 90% of developer be submitting to their private work repository?
PRPL is a new pattern we feel has great potential. At this stage, we welcome experimentation with it while we iterate on the ideas in the pattern and collect more data on where it offers the greatest benefits.https://developers.google.com/web/fundamentals/performance/prpl-pattern/
Now that Apple is developing ServiceWorkers for Safari, and Chrome and Firefox already support it, it'll be time to add Push Notifications to my list of to-dos.
tl:dr on service workers; https://developers.google.com/web/fundamentals/getting-started/primers/service-workers
The only impediment, however...
tl:dr on service workers; https://developers.google.com/web/fundamentals/getting-started/primers/service-workers
The only impediment, however...
During development you'll be able to use service worker through localhost, but to deploy it on a site you'll need to have HTTPS setup on your server.Two birds, one stone, I suppose.
Service workers are really neat. I only have a tiny bit of non-professional experience with them but I like what they offer.
https://mozilla.github.io/server-side-tls/ssl-config-generator/
https://certbot.eff.org/#debianwheezy-nginx
Looks like we'll be on SSL soon. That looks stupid easy.
https://certbot.eff.org/#debianwheezy-nginx
Looks like we'll be on SSL soon. That looks stupid easy.
The filters for my VS project show up and disappear randomly. Checked the filter file and it looks fine. Who the hell know what's going on. Weeeeeeww.
It really seems like if you can ascend to a certain tier of programming you can basically be a mercenary and make a killing.
I just don't have the patience for it. My intern assignment that ultimately led me to getting a full time offer with my company was programming, so I can clearly do it in a competent way if I really needed to, but I kind of envy y'all who can just sit down and crank shyt out.
I just don't have the patience for it. My intern assignment that ultimately led me to getting a full time offer with my company was programming, so I can clearly do it in a competent way if I really needed to, but I kind of envy y'all who can just sit down and crank shyt out.
By Smokey Go To PostIt really seems like if you can ascend to a certain tier of programming you can basically be a mercenary and make a killing.The ability to go long sessions working on the same thing isn't something most people have. It's something you work on.
I just don't have the patience for it. My intern assignment that ultimately led me to getting a full time offer with my company was programming, so I can clearly do it in a competent way if I really needed to, but I kind of envy y'all who can just sit down and crank shyt out.
I always had that ability to just focus on a given assignment for hours and up to months at a time. Almost obsessive at times to my own detriment.
I fucking hate creating custom reports sometimes.
Editor:
Final produced report:
Also, this started as a report that the client told me literally that he didn't care what it looked like. Then he came back and told me to put boxes around the answer fields, add bullet points to each header, change the check marks to a different color, and somehow make it so everything fits on a single page.
The only quick and easy change was putting boxes around everything. To add bullet points, I had to use the report shape tool to create a circle and put it next to each header, which caused me to have to rearrange the headers (not to mention having to find the correct height to place them so they are centered with the header). The report tool does not support changing the color of a check, so I had to go create or find+edit someone else's check boxes and use those images instead of the default ones. To fit everything on the page, I had to completely redo the entire layout. And it may still not be one page since some of the fields are from free text forms that have high character limits and text boxes in the report expand vertically when needed.
What a pain in the fucking ass.
Editor:
Final produced report:
Also, this started as a report that the client told me literally that he didn't care what it looked like. Then he came back and told me to put boxes around the answer fields, add bullet points to each header, change the check marks to a different color, and somehow make it so everything fits on a single page.
The only quick and easy change was putting boxes around everything. To add bullet points, I had to use the report shape tool to create a circle and put it next to each header, which caused me to have to rearrange the headers (not to mention having to find the correct height to place them so they are centered with the header). The report tool does not support changing the color of a check, so I had to go create or find+edit someone else's check boxes and use those images instead of the default ones. To fit everything on the page, I had to completely redo the entire layout. And it may still not be one page since some of the fields are from free text forms that have high character limits and text boxes in the report expand vertically when needed.
What a pain in the fucking ass.
In good news, JetBrains' Rider is out of RC stage and has been fully released! It is a cross-platform .Net IDE. I installed it just a few minutes ago and was able to check out a project from TFS, build an ASP.Net app, and build+run it successfully with no issues.
I really prefer the JetBrains IDE environment (they make IntelliJ and other IDEs) to the Visual Studio one. The cross-platform thing is just a bonus. Granted, I will still need VS for my professional work to make it easier to work with designers and such, but this will likely be my go-to when I just need to edit line code.
e: in less good news, I finished that report and my client came back and told me it looked great! And then sent me an email a few minutes later asking me to change the checkbox from a check mark to an 'x'. *sigh*
I really prefer the JetBrains IDE environment (they make IntelliJ and other IDEs) to the Visual Studio one. The cross-platform thing is just a bonus. Granted, I will still need VS for my professional work to make it easier to work with designers and such, but this will likely be my go-to when I just need to edit line code.
e: in less good news, I finished that report and my client came back and told me it looked great! And then sent me an email a few minutes later asking me to change the checkbox from a check mark to an 'x'. *sigh*
I forgot how headache inducing working on that User-Tag-Associater could be but work has slowed down and I finished my tasks for the day so I figure I'll get back to it after not having touched it for like a year.
e: So glad I named functions appropriately and kept their contents short. Making it so much easier to re-learn what I already did and what I have left to do.
e: So glad I named functions appropriately and kept their contents short. Making it so much easier to re-learn what I already did and what I have left to do.
The Push Messaging API enables us to send notifications to a user even when the browser is closed. Many developers want to be able to use this messaging to update and synchronize content without the browser being open, but the API has one important restriction: you must always display a notification for every single push message recieved.
Being able to send a push message to synchronize data on a user's device or hide a notification you had previously shown can be extremely useful for users and developers, but allowing a web app to do work in the background without the user knowing is open to abuse.
The Budget API, is a new API designed to allow developers to perform limited background work without notifying the user, such as silent push or performing a background fetch. In Chrome 60 and above you'll be able to start using this API and the Chrome team is eager to get feedback from developers.
Each site will be awarded an amount of resource based on user engagement that they can consume for background actions, such as a silent push, where each operation will deplete the budget.https://developers.google.com/web/updates/2017/06/budget-api
megatoooon
Shit like this was truly only doable via third-party SAAS solutions, which were prohibitively expensive unless you're a big-budget player. This is dope and allows me to do a lot of neat things for the site in the future.
Man, the NoSQL dialect that Firebase uses is just not clicking with me. It might just be NoSQL, in general, since this is my first time working with that kind of database language.
Everything is stored as JSON objects. If you have a two-way relationship, you need to duplicate keys and/or other data between objects in order to keep querying quick and responsive: https://firebase.google.com/docs/database/web/structure-data
I don't know why, but I'm just struggling to wrap my brain around it even though it doesn't feel like it should be that tough of a concept. Learning how to use functional languages was easier. Dependency injection was also easier for me to grasp (though, I'm still working on aspects of it).
Everything is stored as JSON objects. If you have a two-way relationship, you need to duplicate keys and/or other data between objects in order to keep querying quick and responsive: https://firebase.google.com/docs/database/web/structure-data
Create data that scales
When building apps, it's often better to download a subset of a list. This is particularly common if the list contains thousands of records. When this relationship is static and one-directional, you can simply nest the child objects under the parent.
Sometimes, this relationship is more dynamic, or it may be necessary to denormalize this data. Many times you can denormalize the data by using a query to retrieve a subset of the data, as discussed in Retrieve Data.
But even this may be insufficient. Consider, for example, a two-way relationship between users and groups. Users can belong to a group, and groups comprise a list of users. When it comes time to decide which groups a user belongs to, things get complicated.
What's needed is an elegant way to list the groups a user belongs to and fetch only data for those groups. An index of groups can help a great deal here:
// An index to track Ada's memberships
{
"users": {
"alovelace": {
"name": "Ada Lovelace",
// Index Ada's groups in her profile
"groups": {
// the value here doesn't matter, just that the key exists
"techpioneers": true,
"womentechmakers": true
}
},
...
},
"groups": {
"techpioneers": {
"name": "Historical Tech Pioneers",
"members": {
"alovelace": true,
"ghopper": true,
"eclarke": true
}
},
...
}
}
You might notice that this duplicates some data by storing the relationship under both Ada's record and under the group. Now alovelace is indexed under a group, and techpioneers is listed in Ada's profile. So to delete Ada from the group, it has to be updated in two places.
This is a necessary redundancy for two-way relationships. It allows you to quickly and efficiently fetch Ada's memberships, even when the list of users or groups scales into the millions or when Realtime Database security rules prevent access to some of the records.
This approach, inverting the data by listing the IDs as keys and setting the value to true, makes checking for a key as simple as reading /users/$uid/groups/$group_id and checking if it is null. The index is faster and a good deal more efficient than querying or scanning the data.
I don't know why, but I'm just struggling to wrap my brain around it even though it doesn't feel like it should be that tough of a concept. Learning how to use functional languages was easier. Dependency injection was also easier for me to grasp (though, I'm still working on aspects of it).
Hrrmmm... a Facebook engineering recruiter from Seattle reached out to me via email. Don't know why they are looking for people and why they are looking specifically at me. lol
I'll respond sometime tomorrow after I look up some information on their teams there.
I'll respond sometime tomorrow after I look up some information on their teams there.
By reilo Go To PostSounds like it's keeping track of both sides of the one-to-many?It does, but I was just trying to wrap my head around why. I fucked around with actually using it in one of my side projects and it makes a lot more sense to me now. Like that article mentioned, it's done in order to run queries quicker and reduce the payload that is sent back. Like, I know it is supposed to be simple, but I just had a mental block on it for who knows what reason. Maybe I have just been too ingrained in relational databases.
I guess my only problem with it now is, what if you have to do the equivalent of a "join"? Do you just have to run multiple queries? Maybe that is another reason to keep your data structure as flat as feasible in order to reduce the number of queries you have to run?
e: i guess this structure that i just described is supposed to be a replacement of sorts for relational-based joins? fuck it, i'll cross that bridge when i come to it.
i'm reading through this data structures book like its game of thrones
not sure why I have such an interest in it
not sure why I have such an interest in it
If you're looking for algorithm practice, these two sites are worth a look
https://www.codewars.com
https://www.interviewbit.com/
https://www.codewars.com
https://www.interviewbit.com/
By Dark PhaZe Go To Posti'm reading through this data structures book like its game of thronesMaybe you have latent DBA talents out need a Fire priestess to unlock?
not sure why I have such an interest in it
By reilo Go To PostThat actually seems really dickish to small sites.
Gah looks like I gotta add a SSL certificate sooner than later.
It is. It's even more stupid considering that most small sites are usually on a shared hosting plan, and they'll feel like they need to pony up for a SSL certificate via their provider -- usually NOT cheap -- just to get rid of the warning because they have a search form on their site.
I think most hosting providers offer LetsEncrypt integration these days, but that requires more technical knowledge than most care for.
I think most hosting providers offer LetsEncrypt integration these days, but that requires more technical knowledge than most care for.