|
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. |
On June 19 2016 15:10 WarSame wrote:To be honest, I couldn't properly explain because it was mostly blindly following instructions online  I have enabled my wireless in the past and that didn't work. I will try that tomorrow and report back. Thanks for the recommendation 
there's a driver for that specific adapter on github
https://github.com/abperiasamy/rtl8812AU_8821AU_linux
|
On June 20 2016 11:51 Nyxisto wrote:Show nested quote +On June 19 2016 15:10 WarSame wrote:To be honest, I couldn't properly explain because it was mostly blindly following instructions online  I have enabled my wireless in the past and that didn't work. I will try that tomorrow and report back. Thanks for the recommendation  there's a driver for that specific adapter on github https://github.com/abperiasamy/rtl8812AU_8821AU_linux Oh... wow, thanks! That is very fortunate.
|
28078 Posts
github saves lives
|
On June 20 2016 11:51 Nyxisto wrote:Show nested quote +On June 19 2016 15:10 WarSame wrote:To be honest, I couldn't properly explain because it was mostly blindly following instructions online  I have enabled my wireless in the past and that didn't work. I will try that tomorrow and report back. Thanks for the recommendation  there's a driver for that specific adapter on github https://github.com/abperiasamy/rtl8812AU_8821AU_linux Unfortunately, that driver does not work for me. They say they have not tested it for 16.04 so I think that's what the problem is. Does anyone have any more ideas? Should I just fresh reinstall or something?
|
what is the specific problem when trying to install it on 16.04?
|
It could not find dkms.conf. I did not check if the file existed, however.
|
Do you have any experience with Ruby on Rails?
I have a bit of a problem. I'm using the bootstrap-sass gem and all of bootstrap is working fine except for the glyphicons. I can access them via web and all but for some reason they won't display and I have absolutely no idea why. I've tried every solution I could find on SO and on the web in general and nothing seems to be working for me.
Did any of you run into similar problem before?
|
On June 22 2016 23:32 Manit0u wrote: Do you have any experience with Ruby on Rails?
I have a bit of a problem. I'm using the bootstrap-sass gem and all of bootstrap is working fine except for the glyphicons. I can access them via web and all but for some reason they won't display and I have absolutely no idea why. I've tried every solution I could find on SO and on the web in general and nothing seems to be working for me.
Did any of you run into similar problem before?
Are you having this issue in production? If you are experiencing this issue in production, I might know what the issue is as I ran into the same thing when deploying a web app on my production server.
Edit - Derp ... it is too early in the morning. I reread your message and I assume you have deployed it on a server so it should be in production. I'll pm you what I did to fix the issue.
|
I have it in development and production envs... I don't know enough about rails (or ruby for that matter) to solve it on my own at the moment.
|
GRAND OLD AMERICA16375 Posts
has anyone played with this? https://www.stockfighter.io/
not that i am searching for a job (already have a kickass one atm), but i thought it is a cool recruiting idea
|
On June 27 2016 15:05 amazingxkcd wrote:has anyone played with this? https://www.stockfighter.io/not that i am searching for a job (already have a kickass one atm), but i thought it is a cool recruiting idea
Haha. Just came upon this today and wanted to post it here but you ninja'd me hard
|
GRAND OLD AMERICA16375 Posts
|
visual studio is free now?
|
|
28078 Posts
On June 28 2016 06:03 solidbebe wrote: visual studio is free now? .NET core 1.0 was released and it now has full support for developers on Linux/OSX systems (as well as mobile). It's a pretty huge deal for .NET devs.
|
Does it mean that doing C# on Linux will actually be feasible now? Or is the .Net core missing some core libraries (all pun intended) widely used in modern development (LinQ and shit)?
|
28078 Posts
On June 28 2016 06:14 Manit0u wrote: Does it mean that doing C# on Linux will actually be feasible now? Or is the .Net core missing some core libraries (all pun intended) widely used in modern development (LinQ and shit)? That's answered here I think https://www.microsoft.com/net/core/platform
Multiple language support with C#, VB, F# and modern constructs like generics, Language Integrated Query (LINQ), async support and more.
|
GRAND OLD AMERICA16375 Posts
|
Relevant section:
The major differences between .NET Core and the .NET Framework: - App-models — .NET Core does not support all the .NET Framework app-models, in part because many of them are built on Windows technologies, such as WPF (built on top of DirectX). The console and ASP.NET Core app-models are supported by both .NET Core and .NET Framework.
- APIs — .NET Core contains many of the same, but fewer, APIs as the .NET Framework, and with a different factoring (assembly names are different; type shape differs in key cases). These differences currently typically require changes to port source to .NET Core. .NET Core implements the .NET Standard Library API, which will grow to include more of the .NET Framework BCL APIs over time.
- Subsystems — .NET Core implements a subset of the subsystems in the .NET Framework, with the goal of a simpler implementation and programming model. For example, Code Access Security (CAS) is not supported, while reflection is supported.
- Platforms — The .NET Framework supports Windows and Windows Server while .NET Core also supports macOS and Linux.
- Open Source — .NET Core is open source, while a read-only subset of the .NET Framework is open source.
|
I must say I'm more and more in love with RoR so far. Not doing anything fancy for the moment, just blindly trying things out and I'm constantly amazed that it just works (it's my first contact with Ruby).
That's why I'd like to ask for a bit of advice... I have this piece of code that does what I want it to but I think it's not very efficient. Is it fine or is there a better way of implementing it?
class Warehouse < ActiveRecord::Base has_many :item_locations, inverse_of: :warehouse, dependent: :delete_all has_many :items, through: :item_locations end
class Item < ActiveRecord::Base has_many :item_locations, inverse_of: :item, dependent: :delete_all has_many :warehouses, through: :item_locations
def quantities data = {}
self.warehouses.each do |warehouse| key = warehouse.name + ' (' + warehouse.code + ')'
data[key] = { :in_stock => self.item_locations.items_in_stock(warehouse).sum(:quantity), :inbound => self.item_locations.items_inbound(warehouse).sum(:quantity), :outbound => self.item_locations.items_outbound(warehouse).sum(:quantity), :reserved => self.item_locations.items_reserved(warehouse).sum(:quantity), } end
data end end
class ItemLocation < ActiveRecord::Base belongs_to :item, inverse_of: :item_locations belongs_to :warehouse, inverse_of: :item_locations
scope :items_in_stock, ->(warehouse) { where(warehouse: warehouse, in_stock: true) } scope :items_inbound, ->(warehouse) { where(warehouse: warehouse, inbound: true) } scope :items_outbound, ->(warehouse) { where(warehouse: warehouse, outbound: true) } scope :items_reserved, ->(warehouse) { where(warehouse: warehouse, reserved: true) } end
|
|
|
|