[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]

/vqc/ - Virtual Quantum Computer

Name
Email
Subject
REC
STOP
Comment *
File
Password (Randomized for file and post deletion; you may also set your own.)
Archive
* = required field[▶Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Oekaki
Show oekaki applet
(replaces files and can be used instead)
Options

Allowed file types:jpg, jpeg, gif, png, webp,webm, mp4, mov, swf, pdf
Max filesize is16 MB.
Max image dimensions are15000 x15000.
You may upload5 per post.


File: d4fa9a6a3693f4c⋯.jpg (117.88 KB,600x600,1:1,99 - 0E7aLKk.jpg)

37bf0f No.4379 [Last50 Posts]

==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

____________________________
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.4381

File: dbbf50fb51594b8⋯.png (28.98 KB,472x325,472:325,Screen Shot 2018-02-11 02.png)

File: 5a37da427e46817⋯.png (850.4 KB,1186x548,593:274,Screen Shot 2018-02-11 03.png)

Welcome Lads! I am new to "real" programming. Wrote programs back in High School on my TI-89 to solve projectile motion equations for AP physics. Also wrote a program to solve a term final Trig problem involving determining the location of a satellite in 3D. Got busted by the teacher bc I turned in no work and my answers were accurate to the 10th decimal. He threatened to fail my project. Showdown on the class whiteboard at lunch, mapped the whole problem and solution in 3 parts during lunch, got my term final a B+. I don't know yet, because I haven't learned. So I love this, VQC is the man. I'm gonna learn to program. Wanna join or help? All ideas welcome!

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.4383

File: 856c148d5b094f2⋯.pdf (26.35 KB,how to use the code.pdf)

I got good feedback with this code guide in December from some lurkers.

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.4384

>>4379

>>4381

>Trig problem involving determining the location of a satellite in 3D

Dude, ephemeris calculations are a bitch, good on you for doing it on a TI-89. Hate to break it to you but you might already be a programmer!

Am honored to have inspired you to get on with it this quickly. Now turn in your e and d from c solution *skeptical teacher glare*

In all seriousness I would love to help out fellow ProgramAnonNoobs and will be watching this thread

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.4385

>>4384

By the way I'm a complete idiot and posted my trip… Heres a new 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.4386

>>4383

I forgot to say I could just dump all the text here if you don't trust pdfs.

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.4387

>>4386

Not worried about pdfs at all but this one seems short enough to post, especially in a relevant thread. If you're done taking a shit you can even add some bold to the headlines.

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.4389

>>4387

That was in December when I typed it up, like I said >>4383 here. Those turds are long gone. It was written specifically for creating the grid, so I don't know how useful it'll be to VA learning to be a proper programmer, but since he doesn't seem to be paying attention to the thread right now I may as well post it and he can just ignore it if it doesn't teach him anything new.

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.4390

>>4389

I’m outside smoking a cig, faggot! Be right back.

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.4391

The following hasn't been modified since I wrote it in December, and I don't mind if anyone thinks they can do a better job and wants to do write their own version.

How to run the code and create the grid for complete computer science newfags:

(Note: I'll format this properly later. I need to go take a shit so I'm in a rush)

So there are a bunch of weird words, numbers and punctuation marks in uneven spacing across a

page. How do you take that and make it do what it's meant to do? The most basic explanation is that

you need to save it as a specific kind of file, and then run it. You can do this with a piece of software

called an IDE (Integrated Development Environment). I'll explain step-by-step for anyone who just

wants to make the grid and mess around with it.

Step 1 - pick a language

This program has been ported (meaning rewritten in a different language) in several different

languages. Languages are like different formats of computer code. You use different words to

achieve different things, and you format them slightly differently. The original VQC code that the

VQC tripfag posted is in a language called C#. There are ports in langauges called Java, Python and

Rust (there might be others I'm not aware of). Something to note when you decide which language

to use is that some programming languages don't work straight away on every computer or every

operating system. You might have to install some extra files. If you run into problems later on, try a

different language, or figure out what files you're missing or what needs to be updated. Otherwise,

bitch in the explanations thread that I didn't explain this well enough. I haven't had to do that kind

of thing for a long time so I don't remember which languages just work and which don't on

whichever operating system.

Step 2 - get an IDE

Each of these languages has many different IDEs that you can use to save and run the code. Some

IDEs are language-specific, and some of them can work with several different languages. If you

want to use the original C# program, you'll need an IDE that works with C#. If you're using

Windows, there's one called Visual Studio. If you're using Linux (I think it works for Macs too),

there's one called Mono. IDEs tend to be free, so you just have to look this software up on the

internet, download it and install it. If you're using Java (which I've been using, and which I can

probably explain in greater detail), there's one for Windows called Dr Java, and another for Linux

called Emacs (Emacs works with most languages I'm pretty sure). There's a Python IDE for Linux

called PyCharm. I haven't used Rust before so I don't know about any Rust IDEs. There are tons of

IDEs in general, so you don't necessarily have to follow my recommendations.

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.4392

>>4389

I know, just thought the last part was a funny joke… I would hope there gone for your sake!.

It's still somewhat useful, and VA might not be the only ProgramAnonNoob here. Lurkers, where are 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.

24f1b3 No.4393

Step 3 - put the code into the IDE and save the file

IDEs are a kind of software that tend to have a big empty space for you to paste or type some text

into. Some of them might make it a little difficult to figure out how to create a file, but there tend to

be IDE-specific guides on places like YouTube or whatever. Create a file and paste the code from

one of the pastebins in. Part of this program saves a few files, and it saves them in the same folder

as your program. Make sure you save your file somewhere you know the location of. Most IDEs

will save the program in the format of the language you're using, but in case they don't, Python files

are saved as .py files, Java files are saved as .java files, and C# files are saved as .cs files (again, I'm

not familiar with Rust). Some languages require you to save the file as the same name used to name

the class (without needing to know what a class is, it'll tend to be in the first line of code after all the

lines that say something about "import xyzthing", when it says something like "public class

Factorizer"). With the Java version, for example, you'll need to call it "Factorizer.java".

Step 4 - you might have to do a little extra to the code

In some languages, you have to do what's called compiling. This turns the code into a slightly

different file which the computer can more closely understand. This will be the case if you're using

Java. The IDE (or, if you're using Linux, the terminal) will have to make sure all of the code makes

sense and isn't typed in wrong. If it is, it'll tell you, so you can fix it. If it works, it'll create a .classfile. If you're using an IDE, there will be an option somewhere that says something about compiling

the code. If you are using the terminal to compile, you'll first have to get the terminal to the correct

folder. If you're using Linux (I can't remember it with Windows but it's similar, and, long story

short, it's almost identical on OSX but you might have to look it up), you'll need to know the folder

path from the root folder (the folder where all the other folders come from), and you'll need to type

into the terminal (without quotation marks) "cd /home/whateveryournameis/folder/folderagain/etc",

obviously replacing the folder path with your folder path. You'll then need to compile using a

command specific to the language you're using. If you're using Java, you'll need to type in "javac

Factorizer.java". javac is the name of a piece of software the terminal can use to compile Java code.

There are other more specific ones for the other languages. If you're using an IDE that can compile

and run code, you won't have to worry about this.

Step 5 - run the code

Most IDEs will have a button or a selection option thing in one of the things at the top of the page

(File, Edit etc) that says something about running the code. If you're using Emacs or some other

IDEs, you'll have to do it with terminal commands. For example, if you used Java with Emacs, after

you compile you'll have to type "java Factorizer" into the terminal, and once the terminal shows

your computer's name again, it'll be done.

Step 6 - open the .csv file, look at the image

If you have a version of the code with image generation, you'll find a .png with a bunch of dots in a

crazy pattern on it. You won't have to do anything weird to open it. It's just an image. To open the

.csv file, you'll need software that opens spreadsheets, such as Microsoft Excel. Two examples of

other completely free spreadsheet programs are OpenOffice and LibreOffice.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

f14c41 No.4394

>>4383

>>4384

>>4389

>>4391

AA and 3D Anon, Thanks guys!! I really appreciate your help. I was outside smoking a cig, sorry for the delay. To learn with a defined objective (VQC) in mind makes learning much easier.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

f14c41 No.4395

So I'm running Visual Studio for Mac, figured out how to run "Hello World." Your student is ready to learn.

So I've got TheEnd.cs ready to go, but I keep getting errors on the path. For my Mac, I'm using

/users/mycomputer/desktop

but i keep getting errors. Any help you guys can give?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

f14c41 No.4396

File: de9793fa73f0310⋯.png (74.11 KB,1102x339,1102:339,Screen Shot 2018-02-11 04.png)

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.4397

"Wrote programs back in High School on my TI-89 to solve projectile motion equations for AP physics"

Good grief! They made me take algebra every single year of high-school because I couldn't pass it. I even took it 2 times in college. I guess I'm not a quitter. I finally smoked it in my early 20s at a community college over summer. It was glorious. I got a b- and finally understood it.

I did some programming but didn't get much past real basic math problems that even I could do in my head.

That said I like to dig into shit. I build my own PC's and like to run Slackware linux, stuff like that.

AA my wife and I got Hello world working with your instructions then the power went out and a bunch of stuff happened and its been like 2 months since I looked at it. It was clear and concise though.

Anyway My time here will be weather dependent. Always keep that in mind. I am fully solar powered. I have a desktop/crypto mining rig/gaming rig but it drinks 1000w of power to run which will wipe my batt. bank in about 4 hours on a cloudy day. Other than that I have a little windows tablet and an android phone. What I really need is a laptop but , you know, that $$. Plus if we make all this work it wont matter anyway.

When the weather is nice I will be outside working on my place as well so as you can see I have to steal time to get in front of a desktop computer. As the weather gets better I will have more time. I always check in daily though on my phone.

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.4398

>>4396

>>4395

Now I don't know C# at all but the first lesson is "getting errors" is not a valid way to ask for help. Unless you get the dreaded "Error: Success" message I'm pretty sure it provides more info than that.

From your screenshot I assume strings in C# have to be quoted, so try putting "" around your path and prefixing it with C:\. I think Windows uses \ and not / but both may work, but get rid of the spaces 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.

4397e0 No.4399

>>4398

Skipped over the Mac part, but that means your paths are case sensitive as well, so you could try path="/users/VA/desktop";

Note what VQC posted is incomplete and won't do anything by itself even if it compiles without errors. The final part is something you can figure out by yourself

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.4400

>>4398

>>4399

Thanks for your help! Working now.

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.4403

>>4396

I see you already figured this out, but if you're having trouble with file paths in the future, go into the terminal, type "pwd" and press enter, then go to the correct folder in the path you would take from the folder that shows up (if you need to go to a higher folder you can type "cd .." a few times, or if it's within the current folder you'd type "cd" and then the rest of the file path), then when you're in the correct place use pwd again and copy and paste the text that comes out into your code.

>>4397

Good to hear that it wasn't hard to understand or anything. I've been told I'm good at explaining things so back when I barely understood anything about the grid I thought it was a good way to be useful aside from just running the board and wasting my time on binary search. Even if you don't stick around here all day like a NEET, the fact that you found your way here shows you're probably helping more than you realize.

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.4404

>>4386

AA, you read vault 7 right? Fuck it, just post PDF's. They know where we live. Thank Jesus the good guys are in control and we're doing our part to help. We almost entered a dictatorship here in USA last election. It's balls to the walls, Anon. They are watching us here too, except now it's Q team.

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.4405

>>4403

For any lurkers, the terminal thing is for Mac and Linux computers (because they use very similar terminals). The command line in Windows uses different commands (i.e. you have to type different words in to get the same results as a Unix command) and I haven't used it much so I couldn't recite any off the top of my head. Look them up. You're on the internet, after all.

>>4404

Even still, I was talking to someone in RSA #9 about it and they still refused to look at the VQC hints pdf. I don't mind just copying and pasting some text for those people.

>We almost entered a dictatorship here in USA last election.

And had you, the rest of the world was doomed too for sure. I'm very far away and I was honestly pretty worried myself; now that all of this has started happening, I'm starting to think I know more about US politics than I do my own country's. You should feel lucky that you have front row seats (although I feel lucky that I'm further away from false flags).

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

File: 2efc64b384edbc8⋯.jpg (299.07 KB,1000x562,500:281,dream_h7sm6zngq7m.jpg)

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

File: faef23ebe19e8b4⋯.png (80.49 KB,1085x376,1085:376,Screen Shot 2018-02-12 02.png)

>>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

File: cae66e96e35e867⋯.png (410.29 KB,1279x952,1279:952,Finally My Very Own Grid L….png)

>>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

File: 593edd142920c0a⋯.png (344.05 KB,2076x3003,692:1001,ApplejackForBaker.png)

>>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

>>4610

Is this Hobo?

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

File: 1207f18bd4b4567⋯.jpg (331.13 KB,1920x1080,16:9,Frodo and Sam.jpg)

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

File: 2c5b3e48017cbae⋯.png (94.56 KB,1162x827,1162:827,vqcTestParameters.png)

File: a84da465f68e85f⋯.png (18.89 KB,843x212,843:212,shiftEnterToRun_PlayIconTr….png)

File: 65b6bd8da90d485⋯.png (25.57 KB,881x323,881:323,openNotebookFromFiles.png)

File: e5aa0a4e2d81c2c⋯.png (6.43 KB,224x222,112:111,JupyterNewJulia11File.png)

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

File: 28fb1ae38aa71bb⋯.png (56.94 KB,1046x299,1046:299,Screen Shot 2019-03-07 01.png)

File: 6075301ac86d29c⋯.png (93.64 KB,1254x548,627:274,Screen Shot 2019-03-07 02.png)

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.

>>11586

>>11586

THIS. Fuck C. We're here to break C.

Links are in the vidya description:

https://julialang.org/downloads/

https://computationalthinking.mit.edu/Fall20/installation/

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.



[Return][Go to top][Catalog][Nerve Center][Random][Post a Reply]
Delete Post [ ]
[]
[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]