Programming, computers, etc. [Serious]
Re: Programming, computers, etc. [Serious]
Computer computer computer computer. Computer computer, computer computer computer. Computer: computer computer computer computer computer?! Computer, computer! Computer computer computer computer, computer computer computer computer. Computer computer, computer computer computer computer computer computer software.
- Uly
- ASDF Prophet
- Posts: 4060
- Joined: Tue Dec 08, 2015 7:40 pm
- Location: where the hawks play!
- Pronouns: Jedi Master
Re: Programming, computers, etc. [Serious]
Computer computer computer, computer. Computer computer, software hardware network computer language Computer. Compute computing computer.
REAL RX
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
Yeah. It can be hard without the certifications, etc.Arkannine wrote:That's cool. I tried recently pulling off some freelance translation jobs but it's really hard to get your first one when you have no certifications or experience, even though you're pretty good with the languageAnonymously Famous, on being a localization engineer, wrote:Yes, and yes.
If you're confident in your translation abilities, and you still want to do it, I could recommend some translation agencies. Send me a PM if you're interested.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
- Arkannine
- ASDF Warlord
- Posts: 15525
- Joined: Tue Oct 28, 2008 9:21 pm
- Location: I'm on a boat
- Pronouns: Don't even try, I'm offended already
Re: Programming, computers, etc. [Serious]
I did, thanksAnonymously Famous wrote: If you're confident in your translation abilities, and you still want to do it, I could recommend some translation agencies. Send me a PM if you're interested.
To push the topic back to programming, computers, etc:
Have you guys ever done any home project with electronics, a Raspberry Pi, Arduino or something like that? How was it?
Two small projects of mine come to mind:
I - For a university event organized by students from my course, I was requested to modify a megaphone. The deal was that it required 6 of those big round disposable batteries, which is fairly expensive. So I was tasked with finding a way to adapt it to use a single rechargeable battery. Through testing the megaphone's battery contacts I figured out that it was a series circuit and its start and end positions. Since it was a series circuit and used 6 1.5V batteries, I knew that its total tension was 6 * 1.5 = 9V. The rechargeable battery I have home is 12V, but I also have a handy voltage regulator so it was no issue. I hooked up the battery to the regulator and the regulator to the battery contacts in the megaphone, switched everything on and it worked perfectly! Next step was just taping the battery to the outside of the megaphone, since it didn't fit very well inside. Not very high-tech or sturdy but it did save us a bit of cash!
II - I bought this cool LED strip. You can modify each LED in it individually, so there's some pretty cool effects to be made. Anyway, I made a quick Arduino program with a couple of modes for it (spinning and switching colors and the like), fed it with a 9V disposable battery and went to a party using it as a belt! It was pretty wild while it lasted, since at the time I only had the relatively bulky Arduino Uno and the pressure from my pocket broke the tip off one of the jumper cables. Still, I may or may not do it again better!
assdef wrote:I've seen a number of Cocks in my days.
Re: Programming, computers, etc. [Serious]
That's cool. I have a Raspberry Pi, but I'm terrible at coming up with small projects like these.
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.
- Arkannine
- ASDF Warlord
- Posts: 15525
- Joined: Tue Oct 28, 2008 9:21 pm
- Location: I'm on a boat
- Pronouns: Don't even try, I'm offended already
Re: Programming, computers, etc. [Serious]
Well, I'd suggest getting a cheap webcam or the Pi's camera and make a people counter or something like that. OpenCV is great and relatively easy to learn.Shai'tan wrote:That's cool. I have a Raspberry Pi, but I'm terrible at coming up with small projects like these.
assdef wrote:I've seen a number of Cocks in my days.
- atomtengeralattjaro
- Site Admin
- Posts: 37518
- Joined: Wed May 23, 2007 3:43 pm
- Location: green
- Pronouns: he / they / that submarine
- Contact:
Re: Programming, computers, etc. [Serious]
Programmable panels, you say? Well check out the crazy inventions of Simone Giertz https://youtu.be/Lh2-iJj3dI0
granted, most of her things don't actually need an arduino, but they're fun.
granted, most of her things don't actually need an arduino, but they're fun.
Re: Programming, computers, etc. [Serious]
Look I have one too!
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
Same.Shai'tan wrote:That's cool. I have a Raspberry Pi, but I'm terrible at coming up with small projects like these.
Sorry I kind of disappeared. I'll take a look at the PM and get back to you probably later today.Arkannine wrote:I did, thanksAnonymously Famous wrote: If you're confident in your translation abilities, and you still want to do it, I could recommend some translation agencies. Send me a PM if you're interested.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Re: Programming, computers, etc. [Serious]
So I'm trying to build a program in Windows, using Visual Studio and C#, for work. I'm a complete newbie though, and I was wondering if any of you had any experience (or know if it's possible) with doing the following:
1? Go to a page
2. Execute a javascript function on that page. (Looks like javascript:lookupUser(parameters...)
3. Fetch the results on the next page.
EDIT:
Well, firstly I need to log in somehow... It's not using a regular login page though.
1? Go to a page
2. Execute a javascript function on that page. (Looks like javascript:lookupUser(parameters...)
3. Fetch the results on the next page.
EDIT:
Well, firstly I need to log in somehow... It's not using a regular login page though.
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.
- atomtengeralattjaro
- Site Admin
- Posts: 37518
- Joined: Wed May 23, 2007 3:43 pm
- Location: green
- Pronouns: he / they / that submarine
- Contact:
Re: Programming, computers, etc. [Serious]
Do you have to use the javascript part? What does it do? (Is there any async requests that it does? Or does it just work with data it already has?)
Does it need to be dynamic (as in: does your program need to work even if the javascript is changed?)
Getting a webpage is easy:
(Just an example, it should be made a bit more complex with asynchronous operation as to not hog the main thread while waiting for the server, etc.)
What kind of login page, what do you mean not regular? Is it delegated login (like login with facebook, google, etc)?
For the basics I would refer you to the ASDFdisapprover (have I not sent you the code?), it uses login cookie.
I'd be happy to help, if you share the details. PM me if you don't want it made public.
Does it need to be dynamic (as in: does your program need to work even if the javascript is changed?)
Getting a webpage is easy:
Code: Select all
HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create("url here");
try
{
using (HttpWebResponse response = (HttpWebResponse)req.GetResponse())
{
if (response.StatusCode != HttpStatusCode.OK)
{
//throw error, refer to response.StatusDescription
}
using (StreamReader reader = new StreamReader(response.GetResponseStream()))
{
string response = reader.ReadToEnd();
//use response
}
}
}
catch (WebException ex)
{
//throw error, refer to ex
}
What kind of login page, what do you mean not regular? Is it delegated login (like login with facebook, google, etc)?
For the basics I would refer you to the ASDFdisapprover (have I not sent you the code?), it uses login cookie.
I'd be happy to help, if you share the details. PM me if you don't want it made public.
Re: Programming, computers, etc. [Serious]
Javascript collects the info in the text fields (user id, name, that kind of thing) then makes a request to search for those variables. What kind of request I don't know, it's kinda hard to scrape info with only Dev tools in Chrome. Almost all extensions are blocked, or gets removed if you unblock it (registry edit the whitelist/blacklist as I learned today).atomtengeralattjaro wrote:Do you have to use the javascript part? What does it do? (Is there any async requests that it does? Or does it just work with data it already has?)
Not really, I don't expect the javascript to change tbh.Does it need to be dynamic (as in: does your program need to work even if the javascript is changed?)
Yeah, got this down. Which was when I discovered the login issue (kept getting 401'd).Getting a webpage is easy:(Just an example, it should be made a bit more complex with asynchronous operation as to not hog the main thread while waiting for the server, etc.)Code: Select all
HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create("url here"); try { using (HttpWebResponse response = (HttpWebResponse)req.GetResponse()) { if (response.StatusCode != HttpStatusCode.OK) { //throw error, refer to response.StatusDescription } using (StreamReader reader = new StreamReader(response.GetResponseStream())) { string response = reader.ReadToEnd(); //use response } } } catch (WebException ex) { //throw error, refer to ex }
It uses single sign on when logging in from IE, in Chrome you get prompted for user id and password. I think this means that IE fetches a certificate or something of the kind and uses that in its call.What kind of login page, what do you mean not regular? Is it delegated login (like login with facebook, google, etc)?
You did, but I don't have access to pastbin at work. I sent it to myself though, so I have it and it's really helpfulFor the basics I would refer you to the ASDFdisapprover (have I not sent you the code?), it uses login cookie.
Thanks! I'll be sure to be on the safe side with the info I give out publicly.I'd be happy to help, if you share the details. PM me if you don't want it made public.
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.
- atomtengeralattjaro
- Site Admin
- Posts: 37518
- Joined: Wed May 23, 2007 3:43 pm
- Location: green
- Pronouns: he / they / that submarine
- Contact:
Re: Programming, computers, etc. [Serious]
Have you tried Wireshark?
How about turning it off and back on again?
How about turning it off and back on again?
Re: Programming, computers, etc. [Serious]
No, maybe I can try that. I did manage to have Live HTTP Headers addon installed, but it got removed again.
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
Does it have to be in C#, or in the .net framework at all?
If not, you could look into creating an HTA (HTML Application). You write them using Javascript and/or VBScript. They open in an application window that's actually a modified instance of Internet Explorer.
That might mimic the behavior of IE doing the single sign on.
I don't know if this helps at all, but it's what I could think of.
If not, you could look into creating an HTA (HTML Application). You write them using Javascript and/or VBScript. They open in an application window that's actually a modified instance of Internet Explorer.
That might mimic the behavior of IE doing the single sign on.
I don't know if this helps at all, but it's what I could think of.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Re: Programming, computers, etc. [Serious]
Not really, but I thought it would be easier to do and share if I get it working. Means that my colleagues don't have to install anything to make it work.
Never heard of it, I'll check it out, thanks
Never heard of it, I'll check it out, thanks
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.
Re: Programming, computers, etc. [Serious]
Damn programming. In the accounting course I'm taking the prof suddenly starts talking about XML (XBRL). If she starts talking about pukeymin, I swear to god I am dropping this course.
- Anonymously Famous
- JKL; Assassin
- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
It seems that there are a lot of things that are XML-based. I'd never heard of XBRL before.assdef wrote:Damn programming. In the accounting course I'm taking the prof suddenly starts talking about XML (XBRL). If she starts talking about pukeymin, I swear to god I am dropping this course.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Re: Programming, computers, etc. [Serious]
Figured it out! Managed to do it in Python with Requests and NLTLM, so now I just need to reproduce it in C# or call the python script from C#.
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.