|
Peristalsis posted:6 to 12 months I only have a 6 month contract so there's that lol. I survived the week by continually asking for 4-8 hour chunks of concrete tasks and it's working out more or less.
|
# ? Apr 28, 2017 20:55 |
|
|
# ? May 31, 2024 15:40 |
|
I'm writing some CTF binaries for friends to solve and I'm having an annoying issue. My binaries, after disabling ASLR, get loaded into a very low address. Those zeroes effectively kill any kind of overflow I can do because strings will be terminated. Can I change where my compiled code gets loaded?
|
# ? Apr 29, 2017 17:37 |
|
If you're using Visual Studio then I think you want /BASE e: and check the value of /FIXED
|
# ? Apr 29, 2017 18:38 |
|
Linux I'm afraid
|
# ? Apr 30, 2017 00:10 |
|
You should be able to change that with a linker script maybe this will help
|
# ? Apr 30, 2017 03:48 |
|
I'm running perl scripts in bash with an argument like: myPerlScript.pl arg1 Then retrieving the arguments in perl like: (my $myVar) = @ARGV; 1) How do I properly attach multiple arguments when calling the perl script from bash? 2) How I retrieve multiple arguments in the perl script?
|
# ? May 1, 2017 17:31 |
|
LP0 ON FIRE posted:1) How do I properly attach multiple arguments when calling the perl script from bash? code:
|
# ? May 1, 2017 17:36 |
|
TooMuchAbstraction posted:
Sorry I'm really confused, because that looks like a perl command of code, not calling a file attaching arguments. And what is the a b c?
|
# ? May 1, 2017 21:48 |
|
LP0 ON FIRE posted:Sorry I'm really confused, because that looks like a perl command of code, not calling a file attaching arguments. And what is the a b c? "perl -e" invokes Perl on the command line, executing whatever is in the following string. The string is a Perl command, which, prettified, looks like this: code:
In short, to pass multiple arguments, just list them in your invocation: myPerlScript.pl arg1 arg2 arg3 And use the "my ($arg1, $arg2, $arg3) = @ARGV" syntax to access them in the script. Perl's greatest strength is its utility on the commandline, so it's worth becoming familiar with the -e flag and writing Perl one-liners. You can use it to process lines of text, for example. Indeed, this is such a common pattern: code:
code:
|
# ? May 1, 2017 21:54 |
|
TooMuchAbstraction posted:arguments, just list them in your invocation: That's actually what I've tried, and then I tried foreach in the perl script like: code:
|
# ? May 1, 2017 22:14 |
|
You're gonna have to give more context on how you're invoking your Perl script, then, because something's going wrong there.
|
# ? May 1, 2017 22:28 |
|
TooMuchAbstraction posted:You're gonna have to give more context on how you're invoking your Perl script, then, because something's going wrong there. Good point. I'm using the saveAndRun extension in vs code in the workspace settings: code:
|
# ? May 1, 2017 22:31 |
|
LP0 ON FIRE posted:Good point. I'm using the saveAndRun extension in vs code in the workspace settings: Ah, sorry, I have zero familiarity with VS Code.
|
# ? May 1, 2017 22:53 |
|
I'm trying to write a c++ app which uses libcurl to grab stuff via the github api. It works perfectly fine ( verbose output ) using the curl exe ( ignore the [url], forums put that in.. )code:
code:
|
# ? May 2, 2017 00:35 |
|
I'm learning C# and trying to do some windows graphics programming. I have a python background, but basically zero graphical experience. I have some old Java experience so I have a very basic understanding of what methods are, but I'm confused as to how you use them or turn them into the equivalent of a python function. Take this code: code:
Like so: code:
code:
code:
A c# visual studio 2017 tutorial would be nice, but all the ones I've found are out of date and I can't get much of the sample code to work usually since it involves console.write, or system.drawing, which either doesn't exist anymore, or I can't use for reasons I don't understand. ate shit on live tv fucked around with this message at 01:33 on May 2, 2017 |
# ? May 2, 2017 01:31 |
|
TooMuchAbstraction posted:Ah, sorry, I have zero familiarity with VS Code. It's all good. I probably just need to have a more involved line like the -e flag and such. Those cmd settings are supposed to be just like a bash command line. I'll experiment more tomorrow. Thanks.
|
# ? May 2, 2017 01:41 |
|
ate poo poo on live tv posted:I'm learning C# and trying to do some windows graphics programming. I have a python background, but basically zero graphical experience. I have some old Java experience so I have a very basic understanding of what methods are, but I'm confused as to how you use them or turn them into the equivalent of a python function. I've heard good things about this series of video tutorials, assuming you're the kind of person who can learn from videos. (I'm not.) It's for absolute beginners, so it might be pretty slow for you, but it will cover all the fundamental stuff that's getting glossed over. The examples you've given here have some more advanced stuff thrown into the mix, so I'd advise forgetting about them.
|
# ? May 2, 2017 03:00 |
|
Hey TooMuchAbstraction I figured out my command line bash problem. I didn't post the whole perl script, because I expect that wouldn't be the problem, but I found out from stackoverflow question I stumbled upon, that the open file handler needs to reinstated every time the loop runs: http://stackoverflow.com/questions/3086576/nested-foreach-loop-in-perl-only-looping-once Works now
|
# ? May 2, 2017 21:38 |
|
Awesome, glad to hear you got it working!
|
# ? May 2, 2017 22:22 |
|
I've been writing mostly server-side Java code for the past 8 years, with a little bit of Angular web-clients in the past 2. I've just been put on a project writing an end-client C# agent that needs to interact with the Windows event log. What kinds of things do I not realize that I don't know about writing end-client code? Are there any good resources that I should check out?
|
# ? May 2, 2017 23:05 |
|
This isn't really a programming question, but I figured this still might be the best place to ask it. I'm currently making an app for people studying urban planning, and I want a snazzy background on some of the screens. So I wondered if anyone knew about places with resources that can be used freely for such purposes. Specifically I want something like an overhead view of a stylized urban environment. Tried mocking up something myself, but I'm not super at stuff like that.
|
# ? May 3, 2017 13:48 |
|
uncle blog posted:This isn't really a programming question, but I figured this still might be the best place to ask it. I'm currently making an app for people studying urban planning, and I want a snazzy background on some of the screens. So I wondered if anyone knew about places with resources that can be used freely for such purposes. Specifically I want something like an overhead view of a stylized urban environment. Tried mocking up something myself, but I'm not super at stuff like that. Go play Cities: Skylines for a bit and take a screenshot?
|
# ? May 3, 2017 16:29 |
|
Gravity Pike posted:I've been writing mostly server-side Java code for the past 8 years, with a little bit of Angular web-clients in the past 2. I've just been put on a project writing an end-client C# agent that needs to interact with the Windows event log. What kinds of things do I not realize that I don't know about writing end-client code? Are there any good resources that I should check out? Is there a UI or is it a pure service?
|
# ? May 4, 2017 14:07 |
|
Munkeymon posted:Is there a UI or is it a pure service? Pure service. There's a menu-bar thing that needs to basically display the version and advertise that it is, in fact, running.
|
# ? May 5, 2017 04:58 |
|
uncle blog posted:This isn't really a programming question, but I figured this still might be the best place to ask it. I'm currently making an app for people studying urban planning, and I want a snazzy background on some of the screens. So I wondered if anyone knew about places with resources that can be used freely for such purposes. Specifically I want something like an overhead view of a stylized urban environment. Tried mocking up something myself, but I'm not super at stuff like that. Are you associated with academics? That's exactly the kind of scut work that professors can usually squeeze out of urban design students, if you've got access to them.
|
# ? May 6, 2017 17:06 |
|
raminasi posted:Are you associated with academics? That's exactly the kind of scut work that professors can usually squeeze out of urban design students, if you've got access to them. This is true in every field. Also, Stock Exchange.
|
# ? May 8, 2017 05:00 |
|
Gravity Pike posted:Pure service. There's a menu-bar thing that needs to basically display the version and advertise that it is, in fact, running. Then you probably don't need to worry about details like UI thread vs main thread, which was my first thought. You might not know that a registered service, which is how I'm assuming you'd run your agent, can't have any user-visible UI at all (see http://stackoverflow.com/a/2652285/301807)? Relatedly, you'll want to write it such that the functional bits are walled off in their own library so you can debug it in a console application and distribute it with a service application. Other than that, you might want to ask in the .Net thread
|
# ? May 8, 2017 15:04 |
|
Does anyone know of a database diagramming tool* compatible with SQL Server other/better than the one that comes with SQL Server Manager? Particularly, something I could configure to recognise some relationships that aren't, say, officially represented by nice, sane foreign keys, which is one problem with using the MS tool. The other being that it's really bad at coming up with a sane layout on its own. *as in, examine schema + maybe a config, emit diagram, not a drag and drop table designer
|
# ? May 8, 2017 19:54 |
|
Is PluralSight a good training resource? I need to pick something for my work to pay for and I've seen PluralSight recommended in a few places. I'm looking for general IT hardware/software, programming (javascript, python), and data analysis/business intelligence stuff. I haven't seen the data/business stuff on any other training sights I've looked at. If not PluralSight, what should I be looking at? Also, it could be a free resource but I'm not opposed to making my employer fork the bill for something better.
|
# ? May 9, 2017 22:00 |
|
kiwid posted:Is PluralSight a good training resource? In my experience PluralSight seems better for programming stuff, CBT Nuggets seems better for IT stuff. I also like the O'Reilly Safari library.
|
# ? May 9, 2017 22:21 |
|
kiwid posted:Is PluralSight a good training resource? I've used Lynda and Pluaralsight to learn. Pluaralsight is good because it gives you paths which are basically guides for how to progress through a given tool or language. Lynda is much less structured. However, if you're supposed to learn a given subject and the instructor sucks, you don't have a choice with Pluaralsight unless you look on YouTube and find a better alternative. Pluaralsight also is weird with the paths because some of the courses for a given path are kind of like why is this here. I'm kind of just rambling. Let me know if you have specific questions.
|
# ? May 9, 2017 22:52 |
|
The Fool posted:In my experience PluralSight seems better for programming stuff, CBT Nuggets seems better for IT stuff. Never heard of O'Reilly Safari. I'll check it out. huhu posted:I've used Lynda and Pluaralsight to learn. Pluaralsight is good because it gives you paths which are basically guides for how to progress through a given tool or language. Lynda is much less structured. However, if you're supposed to learn a given subject and the instructor sucks, you don't have a choice with Pluaralsight unless you look on YouTube and find a better alternative. Pluaralsight also is weird with the paths because some of the courses for a given path are kind of like why is this here. It looks like Lynda is a better resource than it was 2 years ago when I tried it. Maybe I'll get them to buy both. Has anyone used KnowledgeNet before?
|
# ? May 10, 2017 12:40 |
|
I'm crossposting this from the infosec thread: I have a problem with some data that's encoded in an unknown way. The decoded data is most likely human readable text. A hexdump shows that it the ASCII representation of the binary data is hex. Could someone help me figure out what magic this is? I've been guessing that it might be a protobuf or similar protocol, but haven't been able to reverse anything. code:
|
# ? May 11, 2017 17:59 |
|
So, question. I'm an intermediate-level .NET and SQL guy who wants to continue getting to be less poo poo at programming. Obviously training is really the only way to do this, but like everybody else time is a factor for me. The one time of day that's basically a dead zone for me is my commute, which amounts to probably 50 minutes round-trip spent in the car every day. This has also led to me discovering that audiobooks are a pretty great way to pass the time if you're regularly spending decent amounts of time in a car. (The Martian loving rocks; I loved the movie, and it turns out the book makes it look like poo poo by comparison.) So, just throwing this out there: Are there any audiobooks that do a decent job passing along programming knowledge in a format that doesn't require 100% concentration? I tried the Programming Throwdown and Herding Code podcasts for a while, but ultimately didn't find them too useful; they take an extremely long time to pass along information that's ultimately so high-level it's nearly useless. My hope is there's some other source I can listen in on that will allow me to make something productive of my drive, but I'm guessing I'll be told when I already suspect: That studying programming poo poo just requires too much concentration and focus and visual learning to be done realistically in a car via pure audio. Still, it's worth a shot.... anybody had any luck with programming audiobooks or podcasts during longer drives?
|
# ? May 12, 2017 14:20 |
|
Backhand posted:So, question. I'm an intermediate-level .NET and SQL guy who wants to continue getting to be less poo poo at programming. Obviously training is really the only way to do this, but like everybody else time is a factor for me. The one time of day that's basically a dead zone for me is my commute, which amounts to probably 50 minutes round-trip spent in the car every day. This has also led to me discovering that audiobooks are a pretty great way to pass the time if you're regularly spending decent amounts of time in a car. (The Martian loving rocks; I loved the movie, and it turns out the book makes it look like poo poo by comparison.) Can you take a bus or train to work? I'd never be able to really learn anything while driving, but I'm able to take a bus for most of my commute, and I've made a habit of reading real books while en route. It's NOT ideal - putting 20-25 minutes at a time into a dense computer science book makes the book drag out for a long time, and I never seem to get around to typing the exercises I write out in my spiral notebook into an actual interpreter/compiler to debug, but it's better than nothing, which is what I'd likely be doing otherwise.
|
# ? May 12, 2017 16:16 |
|
Backhand posted:Still, it's worth a shot.... anybody had any luck with programming audiobooks or podcasts during longer drives? As you concluded, I don't think really learning programming concepts works without directly reading and writing code. I do, however, listen to podcasts to get some high-level exposure to new technologies and concepts that I then investigate when I'm at a computer. Frankly, what makes a senior-level software engineer in my opinion is being able to digest all the information that is out there and make decisions regarding direction and architecture. The implementation is usually the easier, more straight-forward side of things. Anyway, I like (.NET related): -Dot Not Rocks Podcast (annoying hosts, but good guests) -Coding Blocks Podcast -Scott Hanselman's Podcast
|
# ? May 12, 2017 18:19 |
|
So I have two arrays, one with things I'm interested in (needles) and another taken from a constantly changing API (haystack). The contents and length of the haystack are constantly changing. I'm trying to quickly iterate over the haystack and find values associated with my needles, but the way I'm doing it is way too slow for my liking. In pseudocode, this is what I'm doing: code:
|
# ? May 14, 2017 06:13 |
|
How many "needles" are there?
|
# ? May 14, 2017 06:30 |
|
Triglav posted:So I have two arrays, one with things I'm interested in (needles) and another taken from a constantly changing API (haystack). The contents and length of the haystack are constantly changing. Turn haystack into a hashmap for quick lookups. code:
Other questions to ponder:
|
# ? May 14, 2017 06:32 |
|
|
# ? May 31, 2024 15:40 |
|
Without a definition of "constantly changing" it's hard to say, but yeah as the poster above said, hash table.
|
# ? May 14, 2017 06:34 |