|
Thermopyle posted:I never know where to point people who are already programmers who want to learn C to understand computers better. I "learned" C from various blog posts and tutorials and that wasn't great. Look at the book I linked above.
|
# ? Mar 4, 2018 21:00 |
|
|
# ? Jun 8, 2024 07:32 |
|
rjmccall posted:It’s like Song of the South, there are lots of things to appreciate but it needs to be watched with a critical eye and you probably shouldn’t show it to kids. What would be the Birth of a Nation of programming?
|
# ? Mar 5, 2018 11:07 |
|
Thermopyle posted:So what should such a person read? Computer Systems: A Programmer’s Perspective Star War Sex Parrot fucked around with this message at 15:35 on Mar 5, 2018 |
# ? Mar 5, 2018 15:27 |
|
Dominoes posted:Thanks for the info dudes! I'm tempted to dive back into C after attempting a project with Rust. Star War Sex Parrot fucked around with this message at 15:51 on Mar 5, 2018 |
# ? Mar 5, 2018 15:37 |
|
That sounds like a neat project that I might be interested in doing too. Also, thanks for the reading recommendations. Now to just remember them next time the subject comes up...
|
# ? Mar 5, 2018 16:23 |
|
Thermopyle posted:That sounds like a neat project that I might be interested in doing too. https://web.stanford.edu/class/cs140e/syllabus/#schedule It’s a little more abbreviated than I’d like since they’re on the quarter system, but I’m hoping it’s a nice Rust intro.
|
# ? Mar 5, 2018 16:26 |
|
LOOK I AM A TURTLE posted:What would be the Birth of a Nation of programming? I don’t know if any real programming language approaches quite that level of “groundbreaking but so thoroughly contaminated by its terrible philosophy that it’s best just left to rot in an archive”. Obviously there are a lot of comedy options.
|
# ? Mar 5, 2018 18:03 |
|
I'm trying to write an SQL statement that depending on a parameter either displays all results, or filters them. So I tried to be clever and wrote something likecode:
code:
code:
Does anybody with more experience in SQL know if there is a kind of best practice to formulate a WHERE statement that can either grab all items or only a subset?
|
# ? Mar 6, 2018 11:08 |
Uh why would that be false? Can you post the rest of it? If you want a predetermined no filter value you can write something like SQL code:
|
|
# ? Mar 6, 2018 11:27 |
|
Ah sorry I was stupid and defined the variable as char(20) instead of varchar(20) so it padded it with spaces and that failed the check. And the OR is a good idea too.
|
# ? Mar 6, 2018 14:06 |
|
As part of a job interview, I've been asked to use a Salesforce developer account to design and present a customized CRM system. It looks like a very simple assignment: the client has salespeople who sell stuff and give samples, and you wanna track these sales records in addition to any customer feedback. I can't use standard Salesforce objects and must use custom ones. Problem is I have no Salesforce experience and the website is completely mystifying. I'm supposed to walk an audience through "the configured solution in Salesforce.com as part of your presentation." Am I being asked to create an app? Develop a schema? What is the end product supposed to be?
|
# ? Mar 7, 2018 09:28 |
|
What's a good book on designing distributed systems?
|
# ? Mar 7, 2018 14:04 |
|
Maybe I should ask here instead of in Haus of Tech Support, derp. I need help changing this PowerShell script to target a subfolder of the Documents directory:code:
Source script from: https://en.share-gate.com/blog/onedrive-for-business-migration-powershell
|
# ? Mar 7, 2018 20:46 |
|
Ghost of Reagan Past posted:What's a good book on designing distributed systems? Anything that discusses Erlang?
|
# ? Mar 8, 2018 09:47 |
|
my cat is norris posted:Maybe I should ask here instead of in Haus of Tech Support, derp. I need help changing this PowerShell script to target a subfolder of the Documents directory: After briefly looking through the other commands available in the module you're using, it doesn't look like it'll be easy. The issue is the Import-Document specifically only takes a document library as an argument there doesn't appear to be a way built in to the cmdlet. You may need to get dirty with some .NET and use the Sharepoint CSOM. Try asking in the powershell thread ( https://forums.somethingawful.com/showthread.php?threadid=3286440) too though, someone else may have a better answer.
|
# ? Mar 9, 2018 00:37 |
|
my cat is norris posted:Maybe I should ask here instead of in Haus of Tech Support, derp. I need help changing this PowerShell script to target a subfolder of the Documents directory: Why not map the drive over WebDav and use regular filecopy? Be sure to strip any characters not allowed on a webserver otherwise sharepoint will throw a fit.
|
# ? Mar 9, 2018 01:02 |
|
rjmccall posted:I don’t know if any real programming language approaches quite that level of “groundbreaking but so thoroughly contaminated by its terrible philosophy that it’s best just left to rot in an archive”. Perl. Hugely influential, inspired the next generation of language designers, contains many subtle touches of brilliance, brought together some of the best and most popular pieces of what came before it into one package, shouldn’t be touched with a ten foot pole.
|
# ? Mar 9, 2018 21:22 |
|
lifg posted:Perl. Hugely influential, inspired the next generation of language designers, contains many subtle touches of brilliance, brought together some of the best and most popular pieces of what came before it into one package, shouldn’t be touched with a ten foot pole. This is probably one of the best summations of perl I've seen in a long, long time
|
# ? Mar 9, 2018 21:49 |
|
Vegetable posted:As part of a job interview, I've been asked to use a Salesforce developer account to design and present a customized CRM system. Yes you’re being asked to build an app (a collection of SObject tabs) Is this a Salesforce development job? If no, then the are probably testing your initiative and willingness to learn stuff quickly. Are there any more constraints or requirements to be task? How well executed does Order management have to be? How many UIs are they looking for? This task can be completed without any code, probably. Every SObjevt has a standard UI called a Page Layout. These include a form for updating custom fields on the object and Related Lists (which are just a table of related SObjects [Example: accounts are 1:inf Contacts, so a Related List on the Account Page Layout would be all the Contacts related to Account])). Above everything, use Salesforce Classic for now. Plenty of accessible examples and StackOferflow stuff. The rub here is that using the standard Page Layout to manage orders is slow and inefficient when a Salesperson has to manually create a new OrderItem and relate it to an Order and Product.But this is probably all you’ll have time for so just stick to Page Layouts. Do this: 1. Create custom SObjects (Customer, Salesperson, Order, OrderItem, Product, Commissions) 2 add custom fields to implement your scheme (relate Orders to Customrrs and Salespersons, etc) 3. Edit page layouts to add the necessary fields on each SObject along with relevant Related Lists (customers should have related list orders, salesperson has Related list order, order has Related list orderitem) There is no escaping he User object. You have to use these as this is how a salesperson is credentialed and would be able to log in to SFdC and use the app. Create a Salesperson Profile. Salespersons should be able to create orders and order items. Salespersons should not be able to edit their own commission rate. Salespersons should be able to create an order item by clicking New on the OrderItems Related list, create Customers, etc. Basically just Revoke FLs for objects and fiefs Salespersons shouldn’t be touching, and remove irrelevant stuff from the Page Layouts. Add dummy data. When you demonstrate it you need to show two parts: from an admins perspective (adding products and salespersons) and a salespersons perspective (creating customers, orders, order items). Use the Log In feature to demonstrate a salesperson using the app. Create an ER diagram and present that also when demonstrating. Also Emphasize that you used no code to do the task, Salesforce diehards love the notion of “clicks not code”). Show where you used Related Lists in Page Layouts. Show that Salesperson can’t access fields that they shouldn’t (eg if you had a CommissionsRate field on the order or Salesperson SObjects then a Salesperson-profiled User should not Be able to edit that) Edit: typed on a phone, please ignore bad spalling, The Grammies, etc Edit 2: just make a field CustomerFeedback on Order for customer feedback Woodsy Owl fucked around with this message at 07:12 on Mar 10, 2018 |
# ? Mar 10, 2018 07:08 |
|
I have file.txt:code:
code:
I know about grep -v and grep -o, but rather than try some custom bozo stuff like grep -i <(cat emotes.txt | tr '\n' '|') file.txt (which doesn't work anyway) or whatever, I'd rather use something more idiomatic. Surely grep has more native support for this use case?
|
# ? Mar 12, 2018 18:42 |
|
ufarn posted:I have file.txt: Volguus fucked around with this message at 18:55 on Mar 12, 2018 |
# ? Mar 12, 2018 18:51 |
|
Grep has a -f flag that lets you pull keys from a file. So you should just need `grep -f whatiwant.txt file.txt`
|
# ? Mar 12, 2018 18:54 |
|
So coworker has his hands full trying to make a web based kiosk interface on a machine that runs windows 10. Said kiosk has to have printing functionality where you press a button on that web interface in a browser and it shits out a piece of paper with some stuff printed on it. Kiosk machine has a printer connected via usb for this task. Is there a piece of software that runs in command line and can pull printer status in an easily parseable format(at the very least if it's ready to print or not). Also what would be the best way to send print commands to that printer in the kiosk in general? the requirements there are: * no prompts for user * utf-8 support * print a specific payload and not the page the browser is currently on. EDIT: The printer is EPSON TM-88V Receipt (with no network module, usb only) TheCoach fucked around with this message at 11:54 on Mar 14, 2018 |
# ? Mar 14, 2018 11:46 |
I would suggest installing a small printer server program that runs on the kiosk machine itself. Have it take HTTP connections on localhost and make print jobs based off that. This assumes that you are developing the main webapp too and can have it send AJAX requests to the print server program.
|
|
# ? Mar 14, 2018 12:10 |
|
Yeah the web app is on our end. Any recommendations for what print server package to use? Free would be highly preferable.
|
# ? Mar 14, 2018 13:04 |
My suggestion was to write your own. Depending on how simple or complex the printjob is you can probably solve it with some simple template files that can be loaded, filled in, and sent to printer. A small C# app can probably do it.
|
|
# ? Mar 14, 2018 13:23 |
|
Sadly all we have here are PHP and javascript folks so this might prove problematic.
|
# ? Mar 14, 2018 13:38 |
|
TheCoach posted:Sadly all we have here are PHP and javascript folks so this might prove problematic. Whenever I hear an X language developer saying that "I can't program in Y, I am an X developer" I feel like punching them in the face. In reality, I just fire their rear end. It is perfectly acceptable to say: "Y language sucks donkey balls, I don't like it", but to refuse to work in it for 5 minutes, that's not acceptable. And C# is not set in stone, was just suggested because it is easy. VB would work too (and just as easy). Or, go with plain old win32 apis.
|
# ? Mar 14, 2018 14:15 |
|
TheCoach posted:Sadly all we have here are PHP and javascript folks so this might prove problematic. https://johnnycode.com/2010/03/05/using-a-template-to-programmatically-create-pdfs-with-c-and-itextsharp/ and you don't even need Visual Studio to compile it: https://www.monodevelop.com/
|
# ? Mar 14, 2018 15:00 |
|
Yeah I know, code is code but the question here is time and budget and if the client does not want to pay the thing doesn't go further. Generating an actual PDF is really not the problem you can easily do that in PHP on the web app end of it, the issue was initiating the print from the web interface and a print server is the correct way to do it. I did dig up some code a dude did to setup a simple service for that in asp and if it comes to that that's what we'll do. The client however suddenly remembered they have in-house team that does their apps and will probably take the kiosk end of this themselves, which makes more sense than a bunch of Magento devs building their very first C# app and hoping it doesn't fall over when used. I'm not personally working on this and just wanted to get some opinions on how do you solve something like this.
|
# ? Mar 14, 2018 15:11 |
When you're targeting a receipt printer you don't want to make PDF files anyway, they usually take some text-based format with escape codes for formatting, barcodes, and graphics. If you'd had a network-enabled version of the printer, I'd have suggested you used the built-in webserver (on the printer) that takes some XML format and prints it. nielsm fucked around with this message at 15:53 on Mar 14, 2018 |
|
# ? Mar 14, 2018 15:50 |
|
nielsm posted:When you're targeting a receipt printer you don't want to make PDF files anyway, they usually take some text-based format with escape codes for formatting, barcodes, and graphics. Didn't know that - never had the 'pleasure' of working with one
|
# ? Mar 14, 2018 16:08 |
|
nielsm posted:When you're targeting a receipt printer you don't want to make PDF files anyway, they usually take some text-based format with escape codes for formatting, barcodes, and graphics. You mean postscript? Not all printers know PS, but there's a fair amount of them that do.
|
# ? Mar 14, 2018 16:55 |
|
Volguus posted:You mean postscript? Not all printers know PS, but there's a fair amount of them that do. He doesn't. A lot of POS receipt printers take actual plain text as their input with a couple escape characters for tabs and newlines, and that's it.
|
# ? Mar 14, 2018 17:18 |
|
When talking about printers POS is nicely ambiguous here.
|
# ? Mar 14, 2018 19:40 |
|
Volguus posted:You mean postscript? Not all printers know PS, but there's a fair amount of them that do. ZPL is a common one
|
# ? Mar 14, 2018 21:53 |
|
Bob Morales posted:ZPL is a common one Are there printers other than the Zebra ones that know ZPL?
|
# ? Mar 14, 2018 22:03 |
|
nielsm posted:When you're targeting a receipt printer you don't want to make PDF files anyway, they usually take some text-based format with escape codes for formatting, barcodes, and graphics. Yeah it's kind of bizarre that the company cheaped out and did not provision printers with the network module installed. Manufacturer provides full php SDK for working with a network enabled version of the model so it would have been perfect.
|
# ? Mar 15, 2018 00:16 |
|
So a friend of mine got accepted to the Lambda School for a part time computer science course. He's been wanting to get into programming for a long time (for a better paying job) but keeps hitting a wall when he tries to self-teach himself. Does anyone have any experience with this place or know someone who has? Is it legit? He got accepted and is enthusiastic but doesn't want to get involved with something won't help him learn the material or might end up being a scam or something. Any info would be appreciated. He's looked around and has only found glowing reviews, but just wants to make sure before he commits to the course and gets his hopes up if it ends up being junk.
|
# ? Mar 15, 2018 23:30 |
|
|
# ? Jun 8, 2024 07:32 |
|
I'm looking for a JS library or a small web app (no flash) for making exercises with flow diagrams. We ask the user to construct a diagram based on something they learned previously and they move around shapes and draw arrows and write stuff into labels, and we check whether they got it right. Anyone knows of something like that? Sorry if the explanation is poor. I'm not a developer, just helping with research.
|
# ? Mar 17, 2018 10:29 |