37bf0f No.4379 [View All]
==Want to learn how to program?== =#MeToo.=
Alright, let's talk about it faggots. I don't know shit about programming, but I love to learn. Luckily, we have excellent program anons who can help. Just ran my first snippet of code today, "Hello World". All anons welcome, this is a forum for asking questions and getting answers. Also, ProgramAnons can pose skill appropriate challenges for us newbs if they think we're ready or if they just want to mess with us. Goal is to help everyanon advance in their coding or teaching skillz.
-VA
21 posts and 4 image replies omitted. Click [Open thread] to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
4fb009 No.4406
I am running Linux mint cinnamon. Under the "Programming" Tab I see the following.
Nsight Eclipse edition
nvidia visual profilier
pgadmin 3 ?who knows what this shit is for?
Visual Studio Code
>>4403
Cool, well, I also installed Mono last time per your recommendation. Catch is all I see is "Mono Documentation" and no GUI interface. I hit the terminal and type mono and I get the bash program thingy but I dont see how to do anything with that. so IDK. I am at that point so far.
>>4404
And yeah,VA I hear ya on all the sick drops happening all over the place. Really blows your mind sometimes to think about how the world used to be. We have come so far and the journey has hardly begun. Almost entered a dictatorship. Hell we have been living in a dictatorship, arguably as far back as 1913 when the FED came online and captured the US. DEFINITELY since Kennedy was killed we have been in a dictatorship. We just have this fuzzy warm blanket of fake wrapped around us all the time so we dont wake up. People are waking up now though.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
4397e0 No.4408
>>4404
Really? The Shadow Brokers dump of a decade old NSA stuff was much better. Actual hardcore stuff in there even if most targets are outdated now. Microsoft even had to panic patch everything in advance of the release.
Vault 7 just proved how lame the clowns are training software programmers to be scriptkiddies… They may own some shitty MikroTek based phone infrastructure and have dumb rootkits that anyone could make. Marbler is pretty nicely integrated with Visual C++ but thats about it. These guys really have no chance on secure stuff so that makes me feel better reading their code and internal wiki. devlan.net, really?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
24f1b3 No.4409
>>4406
Try just putting "monodevelop" into terminal (if you didn't know, you can put " &" afterwards to keep using the terminal after you've run a command, too). If that doesn't work you've probably installed part of Mono but not all of it. I've also had a lot of problems with that program. I've just been working on and using the Java version myself.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
4fb009 No.4410
>>4409
Ok, I just sudo apt-get install monodevelop.
Typed Monodevelop and it took right off!
made a new project and pasted Chris's code into the box replacing their Hello World text and saved it. It looks good. Not sure how to "make it go" now though.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
4397e0 No.4411
>>4400
>>4410
This is your task now. There is a simple step missing to "make it go". Has something to do with calling.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
24f1b3 No.4413
>>4410
If you open the "Run" dropdown menu at the top of the screen in Mono there should be options telling you to either debug the program or run it or some other things. That should theoretically make it work (I'd assume you'd debug it and then it would let you run it). If you happen to be in the same unexplainable situation as me in which all of those options are greyed out, let me tell you now, I've looked everywhere for an explanation and found nothing. In that case, you'll have to save the code as a .cs file (if Mono doesn't let you, a text editor like Emacs or Gedit will let you), go into terminal, get to the location of the file, then run the following two commands:
mcs -out:yourvqcfilename.exe yourvqcfilename.cs
mono yourvqcfilename.exe
This is all assuming you're using a Linux distribution and you have Mono installed, so to address lurkers again, you might have other problems I'm not aware of. Again, I'm not really a C# person. I just know enough to run the VQC.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
4fb009 No.4414
>>4413
Hmm. Ok, I tried runwith> Mono 3.2.8
and Debug with the same results.
I get a black box with Press any key to continue… When I press the any key it goes away. :>)
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
24f1b3 No.4415
>>4414
I've never had Mono actually work properly so I've never seen that screen. Maybe that means that it debugged and there were no bugs. Do you have an option that tells you it'll run the program? Maybe the one that says "Start without debugging". It might also just take a minute. If you've done all of that stuff and there isn't an "output.csv" file in the folder where your code file is, you might have to do the terminal version.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
4fb009 No.4416
>>4415
Ok… SO I got a build successful at the top but only the black box and the Press any key to continue… I do so and it goes away. No CSV file seen in the folder where I told it to go.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
4fb009 No.4417
>>4415
Getting cold here, I'm going to wrap it up for the night. Thanks a TON for your help. I will be back tomorrow evening. Prob 6:00pm pacific time.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
24f1b3 No.4418
>>4416
If you aren't getting any errors then the terminal version should work with no issues.
>>4417
Do keep in mind, you have other options, since the code has been rewritten in several languages. At least in my experience and from what I've seen on this board, C# seems to be the most troublesome language out of all the current versions. If you give up, you can use a different language. It'll be the afternoon my time then so I'll probably be around, but there are several other anons who can help you if not.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
4397e0 No.4419
>>4416
This is the expected result for a program that does nothing, congrats on getting it to run. Still missing a piece of code!
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
778723 No.4420
Gotta head to bed lads! Thanks for your help tonight. TBH my lack of skill is a distraction from our main project. But I'll learn quickly. I appreciate your willingness to teach!
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
87475b No.4424
Great thread. Any chance you'd want to learn the Java version? ;)
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
9a05f4 No.4445
I'm just here to bless this faggotry.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
a1ea56 No.4448
>>4424
Java? Sure, what the hell. Can I do it in Visual Studio, or should I download something else?
>>4445
Thanks for blessing this faggotry, Topol!
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
24f1b3 No.4449
>>4448
According to a quick look on their website, you need to install some extensions and things but apparently yes. I've never used it personally so it's up to you if you do like Visual Studio. I'd also recommend Dr Java.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
37bf0f No.4450
>>4449
Thanks AA! I'm down to only 1 error on my original c# VQC code. Would you please give a quick hint on what this error might mean and a possible solution?
"Program does not contain a static 'Main' method for an entry point"
I'm pretty sure it's related to my inability to define the file path properly. Screen shot attached.
I used "pwd" in the the terminal and got:
/Users/Mycomputer
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
37bf0f No.4451
>>4450
Trying not to dox myself, here's the updated screencap.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
24f1b3 No.4452
>>4450
>>4451
Each program has a bunch of those method things (e.g. CreateTheEnd in that screenshot). They're all big chunks of code that do a bunch of operations within some curly braces. They're like functions of the program, kind of like if your program was car.cs, and it had methods called Drive, Park, GetStuckInTraffic, etc. They make sense on their own, but they need this thing called a main method to actually get executed. Otherwise, they're just possible things you can do with your program but they're just sitting there not being used. The program uses the main method to decide when to do what. You can also put more calculations and things in the main method, but what I'm getting at is that you need to have a main method in which you call those functions. It's just like those other methods there except you need to follow a few default values and things. If you don't feel like delving into that, just copy and paste my code below between the theend Dictionary thing and the start of CreateTheEnd (so on line 10 of your screenshot).
I haven't actually looked at my version of the C# code since December, but this is the main method I used:public static void Main (String[] args){
string path = Directory.GetCurrentDirectory();
CreateTheEnd(512, 0, 0, 64, 64);
Output(256, -64, 0, 64, 64, 12);
}
It doesn't make an image the way it currently is, but if you want to generate the grid that's all you should need.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
4397e0 No.4453
>>4448
Don't let him lure you to the dark side :)
>>4450
This is the missing piece I was talking about which… AA just posted so you didn't have to figure it out yourself! Too easy. Here is mine
public static void Main()
{
TheEnd.CreateTheEnd();
TheEnd.Output();
}
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
84241f No.4455
>>4453
>>4452
Fuck yeah!! It worked! Thanks AA and 3D Anon! Screencap of successful .csv generation.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
87475b No.4469
>>4455
All you have to do to run Java from a text file is save it in <classname>.java
And open a terminal there
Then type javac <classname>.java
Then java <classname>
And the code inside the main method will run
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
87475b No.4470
>>4469
You also need the JDK. You'll know whether or not you have the JDK if "javac" is a command.
For example to run a class named Applejack you would do
javac Applejack.java
java Applejack
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
79c22e No.4471
>>4470
>>4469
Baker! Thanks for stopping by! I'll have to get my shit figured out for Java. I can write Java in Visual Studio, right? Here's an Applejack for you. ;)
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
87475b No.4487
>>4471
You can try this. It's written for Windows though.
http://improve.dk/compiling-java-in-visual-studio/
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
14c3bb No.4535
Hey guys I will be available all day tomorrow. >>4418
Thanks AA Yeah I'm not picky. Im totally willing to try any other method out there. Definitely down to try whatever is easy honestly. There is no need on my end to go through undue difficulty for no purpose. :>) Whats the easy one?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
24f1b3 No.4543
>>4535
Several of us use Java so you might find that easy. All you'd have to do is copy the Java version from the pastebin link (it's floating around somewhere), put it either into a text editor or a Java IDE and save it as a .java file (with the filename the same thing as the class name), then go into terminal and do >>4470 this.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
14c3bb No.4545
>>4543
Ok, cool! I will try that tomorrow. Probably 10am or so.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
6ae152 No.4610
Well, I managed to get visual studio code up and running. Looking for that java code and not finding it. Probably just not recognizing it at this point.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
37bf0f No.4640
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
6be457 No.4706
>>4610
It's in the OP of the main RSA threads. https://pastebin.com/Dgu9aP1h
>>4640
Yes it is
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
37bf0f No.4714
Hey Anons! I'm working on the new VQC crumbs now, but have some important questions. I'll post them up tomorrow for Program Anons to give hints and input.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
79c22e No.4787
Question: So in Visual Basic, If you have the same basic setup for the VQC code, can you run any of the new snippets of code by redefining the main and entering the new code with a proper method of returning results? If so, what is the proper way to do it?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
87475b No.4807
>>4787
In Visual Basic? You mean visual studio? And in what language?
https://csis.pace.edu/~bergin/KarelJava2ed/ch2/javamain.html
This is a good explanation, you don't have to do any of the Robot stuff
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
a1ea56 No.4816
>>4807
Hey Baker! Yeah, Visual Studio, working in c#. Reading the article now! Thanks for sharing it. Seems very similar to c#, at least to a rookie like me!
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
953cae No.6216
Hoping some anon can give me some pointers. I have tried so many times to install visual studio so I can write some C# but on all of my computers i am running into a problem where the install fails because a dll is missing. Everything Ive found so far on how to fix that problem calls for uninstalling and reinstalling all previous versions. I've tried that several times and I'm still getting the same problem.
So then I switched to python. I have 2.7 installed and working but the standard libraries dont really give you that much functionality and when I've found libraries that seemed like they would help I (like xlwt for writing to excel spreadsheets with formatting) the damned things either wont install or install but are corrupted.
Does python have a native print function that will give me a little more to work with than console output? All I am trying to do is print a list of numbers that are sorted into rows/columns of predefined length and if the number being printed = a number in one of several lists of numbers it gets color coded. The output could be pixels or ascii or what ever Im just looking for output.
I've been chasing something for a long time and been having to do it manually because it's the only thing thats been working for me and its taking way too long I'll be at this for 5 years before I'm done doing it this way.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e41af5 No.8750
Julia for Virtual Quantum Computing
Getting starting with Julia
Download latest release from: https://julialang.org/downloads/
- follow standard prompts and install.
- add the julia/bin directory to your path, which is where julia.exe resides.
Jupyter Notebooks
- read about it here: https://jupyter.org/install
- found the Ananconda3 route straightforward (already had for Python, latest 3.7 version).
- Conda install here (mac selected by default, others avail): https://www.anaconda.com/distribution/
Project Jupyter was born out of the IPython project as the project evolved to become a notebook that could support multiple languages - hence its historical name as the IPython notebook. The name Jupyter is an indirect acronyum of the three core languages it was designed for: JUlia, PYThon, and R and is inspired by the planet Jupiter
Ok, while Conda downloads, open a CMD window and launch julia (just type julia if on your path).
This puts you at the Julia "REPL".
This is core interface. Type 1 + 1 and hit enter. Doing math, nice!
Type println("hello world") and Boom, you've got hello world checked off the list.
Now, hit the "]" key, and Boom, you're in the "Package Manager".
- this is where you grab your add-on goodies. You'll come back here and add some more if what you need isn't in the "Base" Julia distro. Things like plotting, etc.
- for now, you need the package that works with Jupyter Notebooks. Type "add IJulia" (note spelling and it's case sensitive).
- congrats, you've installed your first package. Exit with Ctrl-C.
By now, Conda should be downloaded.
Install, and select the add to Path checkbock (red text comes up. Don't add if you already have it installed, etc.).
- After install finishes, it will prompt if you'd like to install MS VStudio Code (think you already have that? Not needed for this).
Ok, you're done!
Go to your start menu and launch Jupyter Notebook.
It will start in your root \Users\username directory.
Here's a link to a notebook for the validation step posted by VQC yesterday:
https://pastebin.com/YYfaHxSr
- save as an .ipybn file type (remove .txt from pastebin).
- navigate to dir from Jupyter and launch. Will take a moment for the Kernel to start.
- "SHIFT-ENTER" is used when in a code cell to run that section of code. Results post right below the cell. You can run the whole workbook, or sections as well using menus at top.
- There is also a little "play button" that shows to left of a cell, but installing here don't see it as on other machine.
There are plenty of sites to learn from. Here's a nice one, it was done in a notebook, you just copy paste code and run it. Piece by piece. No compiling (it does it in background first time you run a function).
https://juliabyexample.helpmanual.io/
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
af0bc9 No.8751
>>8750
Cool! So we can run BinInteger on this too?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
319c4a No.8753
>>8751
Yes, will be clear in first line of the notebook (with setprecision used to go above the std 128bit BigInt). I believe this is part of the 'base' Julia distro now.
With Julia, you just use "big" and go from there. See syntax in the notebook example. Once a variable has the Bigtype associated to it, it transfers along the chain of calculations (so don't need to explicitly use every step, it just works).
Total setup time and getting into the notebook in the pastebin should be under an hour.
When you have running, I can drop another notebook that calculates a set of primes to use for the prime_small * c step.
Nice thing is sharing notebook code is tiny, and then you can generate the big stuff locally yourself.
Regarding packages, after adding, when calling in code you enter "using PackageName" and that's it.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
af0bc9 No.8759
Ok, trying to run the new VQC C# code, and obviously I am missing some libraries / directives / assembly references. Can anyone help me figure this shit out please? Newfag over here.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
af0bc9 No.8760
>>8753
I'm willing to try Jupiter, just finally have a grasp of compiling and running AA's programs from my terminal, and was able to generate the CSV Grid in Visual Studio. I'm reluctant to jump ship to a new platform, unless it really is much better.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
319c4a No.8762
>>8760
Night and day. No Sandy Shorts! Promise.
Just follow steps above and report back. I'm here tonight to help.
You're going to love these notebooks. Compiling is transparent, btw, it has a "JIT Compiler" that runs in the background - Just In Time.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
319c4a No.8763
>>8760
>Jupiter
BTW, it's spelled Jupyter (from the pYthon roots).
Also, I've got AA's code running as well.
- tonight, am looking to translate the BigCell.java code from 12/21 over to Julia. Want to get a full Cell, maybe with first 100 elements, for any f or e and n, as output (well, as input to an array to use for futher calcs).
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e68936 No.8873
>>8760
>just finally have a grasp of compiling and running AA's programs from my terminal
Hadn't noticed this comment until last week, and also saw your output yesterday from AA's latest code. Well done getting all running (and to AA for the work and sharing the code). _mm
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
02b8b3 No.11530
Hey Anons! Anyone willing to advise on how to compile c# code?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
8f6c73 No.11569
>>8760
>I'm willing to try Jupiter, just finally have a grasp of compiling and running AA's programs from my terminal, and was able to generate the CSV Grid in Visual Studio. I'm reluctant to jump ship to a new platform, unless it really is much better.
The Jupyter platform isn't so important, more of using Julia as the language.
If you're happy with java (and AA is an expert), then go with that. If you want to dabble in Julia, let me know.
Jupyter notebooks are just a tool / environment for the language. Can also run Python within them as well.
Similarly, you can use the REPL (regular command interface), and do this via other Dev tools as well (Atom, Sublime Text, etc.).
The Binary manipulations are all handled as well, either in the base language, or with packages.
This bred is young, and not getting a lot of use (kek), so if you want to work here, we could do that.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e54a56 No.11586
>>11569
Thanks MM!
I appreciate you.
I'll have time to work over the weekend!
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
8f6c73 No.11809
YouTube embed. Click thumbnail to play. Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
8f6c73 No.12211
In a cell, add the following to trigger these packages to be loaded:
begin
using Random
using Serialization
using Formatting
using PlutoUI
using Primes
using Match
using Markdown
end
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.