420chan now has a web-based IRC client available, right here
Leave these fields empty (spam trap):
Name
You can leave this blank to post anonymously, or you can create a Tripcode by using the float Name#Password
A subject is required when posting a new thread
Subject
Comment
[*]Italic Text[/*]
[**]Bold Text[/**]
[~]Taimapedia Article[/~]
[%]Spoiler Text[/%]
>Highlight/Quote Text
[pre]Preformatted & Monospace text[/pre]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists
File

Sandwich


Community Updates

420chan now supports HTTPS! If you find any issues, you may report them in this thread
independent consultancy in IT , is it a bad idea? by Henry Bunnerway - Thu, 04 Feb 2016 12:04:06 EST ID:L84TsV52 No.35098 Ignore Report Reply Quick Reply
File: 1454605446338.jpg -(625189B / 610.54KB, 1920x1200) Thumbnail displayed, click image for full size. 625189
yoy /prog/ This is probably not programming related but nevertheless need some opinion of some form.
Being unemployed sucks. so a friend of mine asked me to join with and start an IT consulting firm. My friend is an experienced windows admin (who did this sort of thing before ) . i don't know much about windows but I can do a decent bit of linux. Like installing, configuring apache, nginx , nagios. and also i can script in bash, perl + python for programming. My friend knows a bit of webdesigning and currently does webdesigning as a part of the job. The current plan is to combine our skills and start some small consultancy /services.

My dilemma is this: I am socially awkward and I do not have any entrepreneur skills. Plus most of my friend's clients (i was introduced to a few of them) are small buisness owners. (like restaurants, law firms, clinics etc) and i haven't seen any small to medium buisnesses using linux for any of their applications.

is it really worth it to start a linux based consultancy? I mean if we do start who would be my clients? I do not know muhch about any linux based consultancy.
1 posts and 1 images omitted. Click Reply to view.
>>
Henry Bunnerway - Thu, 04 Feb 2016 14:14:57 EST ID:L84TsV52 No.35102 Ignore Report Quick Reply
>>35100
$15 vhost at rackspace? did i miss something, the last time i check for a cloud at rackspace, there was a $50 for service level . (at the minimum)

Also is there any advantage for rackspace, i was thinking more along the lines of linode or digital ocean.

oh yeah, and thanks for the tip. i will add it to my list.
>>
Cyril Hagglegold - Thu, 04 Feb 2016 22:07:59 EST ID:Ew1xe7Or No.35104 Ignore Report Quick Reply
>>35102
>$15 vhost at rackspace? did i miss something, the last time i check for a cloud at rackspace, there was a $50 for service level .

When did you last check? I've had my $15 box for years.

>Also is there any advantage for rackspace

I've just found them to be very reliable. I've only been on RS and AWS, I found AWS to be a bit weird in terms of its web interface.
>>
Hannah Nirryshit - Fri, 05 Feb 2016 00:18:43 EST ID:L84TsV52 No.35105 Ignore Report Quick Reply
>>35104
>When did you last check? I've had my $15 box for years.

https://www.rackspace.com/calculator
>>
Cyril Hagglegold - Fri, 05 Feb 2016 12:52:08 EST ID:Ew1xe7Or No.35106 Ignore Report Quick Reply
1454694728944.jpg -(51376B / 50.17KB, 780x633) Thumbnail displayed, click image for full size.
>>35105
I haven't used that interface before, I just go by this

<--- 0.022*24*30 = 15.84

By the way, freebsd under rs cloud sucks bad.
>>
Betsy Crattingpatch - Tue, 09 Feb 2016 00:40:00 EST ID:GmVstbDH No.35123 Ignore Report Quick Reply
Learn Alpine Linux as it's now used for Docker
Learn Docker
Apply for the zillions of "ops" jobs around looking for ppl who know docker

Being freelance consultants sucks it's easier to just work remotely doing web design/docker F/T unless you already have a network of people that will hire you


What exactly isa mobil app? by Edwin Blammershit - Tue, 02 Feb 2016 06:27:47 EST ID:5MmdKA90 No.35095 Ignore Report Reply Quick Reply
File: 1454412467630.jpg -(107709B / 105.18KB, 1210x726) Thumbnail displayed, click image for full size. 107709
Stupid question, right? Well, maybe not.

I only recently got a proper smartphone. My previous one was really old had and difficulties running a lot of apps. So I've been just getting around using them lately.

One of them is this really dingy app made by the alumni organization of my university. It's used to replace a card they once gave out which you could use to claim discounts in a couple of places. It also serves as a kind of an oldschool web portal to a couple of relevant websites.

This got me thinking that what exactly is a mobile app? Facebook is a website. But also an app. Same goes for Youtube, Twitter, Instagram etc. What are these things, how do they work, what does one use to make them?

The reason I am curious is that I have an idea I could perhaps pursue. I'm a member of a student organization (continuing my studies at master's level) and we have a problem. A communication problem. We share the info on our events through Facebook, Twitter and oldschool mailing lists. Just like every other student organization. And the bigger organisation they are part of. And the university in general And...and you get the idea. The info gets drowned into other information.

So I as someone who studied the basics of comp sci and programming I thought maybe I could whip up some app which would basicaly alert people about these events. If you're interested in our events you could download it. It would contain a list of upcoming events and alert you a day before the event. It doesn't have to be anything fancy. Just something that would help us with our communication problem.

There's all sorts of app builders but I'd like to understand the process behind all of it before I try to do anything.
>>
Eugene Bardham - Tue, 02 Feb 2016 10:25:30 EST ID:XvyyLWhc No.35096 Ignore Report Quick Reply
A phone app is just a locally installed program. When a company that shouldn't have an app tells you "Hey! Download our app!", the interface is often just a web view to a website but because it's an app they can push ads into your phone notifications and do all sorts of other things you probably don't want.


Word Length and Frequency Program (C++) by George Tillingman - Sun, 31 Jan 2016 12:55:36 EST ID:sEEREUKo No.35088 Ignore Report Reply Quick Reply
File: 1454262936778.jpg -(131946B / 128.85KB, 736x1264) Thumbnail displayed, click image for full size. 131946
Hey y'all, ive been writing this program for a while and im experiencing some problems, mainly it doesnt seem to accurately measure the word length.
if anyone has any feedback on this code, it would be greatly appreciated.

http://pastebin.com/ak2U1N7b
>>
George Tillingman - Sun, 31 Jan 2016 12:56:39 EST ID:sEEREUKo No.35089 Ignore Report Quick Reply
i think i should explain some more. This could either read files from DOS redirection or from the keyboard. nobump
>>
Edward Chombleford - Sun, 31 Jan 2016 13:51:16 EST ID:FZqsCuoJ No.35090 Ignore Report Quick Reply
>>35088
your while loop is reading in an extra character every time it loops.
Just compare to ch instead.
>>
Fanny Dartstone - Sun, 31 Jan 2016 23:04:49 EST ID:sEEREUKo No.35091 Ignore Report Quick Reply
update: code now works completely fine except it displays the table twice for some reason.
http://pastebin.com/4kjjgfMr
>>
Simon Shakeforth - Mon, 01 Feb 2016 09:05:14 EST ID:5q2tULje No.35094 Ignore Report Quick Reply
String manipulation with C++, there should be some law against that.
I feel for you OP.

A general tip for these school assignments don't use keyboard input unless you absolutely have to, either use files, standard input or command line arguments.
You make less errors and you get brownie points because it looks like you know what you are doing.


Scraping a webpage by Basil Sannerstine - Mon, 25 Jan 2016 11:29:57 EST ID:QSpowFMW No.35051 Ignore Report Reply Quick Reply
File: 1453739397830.png -(125408B / 122.47KB, 414x566) Thumbnail displayed, click image for full size. 125408
So, I've been interested in browser automation using Python for ages, and I just happened across the splinter module, which is great. I am not dead-set on using splinter for this, although the module will probably be involved in future ventures.

I would like to create a script that can go to a given page store all of the text from that page (html file or document, doesn't matter) while preserving the original formatting but leaving out images and such, navigate to every page linked to from the original page and do the same thing, and repeat the whole thing until I have the entire site archived on my computer. Of course, there would need to be some sort of safeguard so I only store that site, instead of the entire internet, ha.

What modules should I use for this? I've Googled it, but there are just too damn many and I suck too much at programming to figure out which one to use! xlml? BeautifulSoup? Point me in the right direction, guys.
1 posts omitted. Click Reply to view.
>>
Basil Sannerstine - Mon, 25 Jan 2016 12:31:04 EST ID:QSpowFMW No.35053 Ignore Report Quick Reply
>>35052
Will look into it, thanks.
>>
Ernest Sirringstat - Mon, 25 Jan 2016 13:33:58 EST ID:KrVLti/X No.35054 Ignore Report Quick Reply
If you can do it with wget then you should. If you can't, you really want something like phantomJS.
>>
Caroline Heblingridge - Wed, 27 Jan 2016 22:35:10 EST ID:arMXOJXj No.35065 Ignore Report Quick Reply
See below posts I did the base of this in C# and Python.
>>
Hannah Nunderman - Sat, 30 Jan 2016 13:44:37 EST ID:5q2tULje No.35086 Ignore Report Quick Reply
http://www.obeythetestinggoat.com/pages/book.html

Is probably what you want to read, and if not it tells you about browser automation and then some/
>>
Jarvis Chimmerbedging - Sun, 31 Jan 2016 03:00:15 EST ID:NRETuDGI No.35087 Ignore Report Quick Reply
use httrack


Simple website by Frederick Sizzlesere - Fri, 08 Jan 2016 05:41:34 EST ID:gm2HhQXH No.34971 Ignore Report Reply Quick Reply
File: 1452249694277.png -(1234866B / 1.18MB, 900x865) Thumbnail displayed, click image for full size. 1234866
Need to make a simple site for college creds.

Site needs:
CSS
Java script
HTML5

What software is free and easy to use?
Can I code it in FF in an empty tab with F12?
13 posts omitted. Click Reply to view.
>>
Alice Brevingked - Thu, 28 Jan 2016 16:17:10 EST ID:S+TDDgvB No.35079 Ignore Report Quick Reply
>>35064
Why would that be hundreds of files? Utilities for x in one file, utilities for y in another, a main file and some miscellanous stragglers that are probably going to just be configs. Like, if you have hundreds of files at 1000 lines of code, that's 10 lines of code per file. At 10000 that's 100. 100 LOC is not much.

Like, dafuq Java people?
>>
Samuel Brudgebanks - Thu, 28 Jan 2016 17:16:53 EST ID:+6d1kOO+ No.35080 Ignore Report Quick Reply
>>35079
I Should have said 140-200 lines for a simple app with multiple options. If you wanna be competitive in the market type apps not POC one function apps.
>>
Molly Fanninghood - Fri, 29 Jan 2016 07:04:28 EST ID:iqiK9pKW No.35081 Ignore Report Quick Reply
>>35063
I've got a project at about 12 000 LOC. It consists of many programs and a library. I keep my tree reasonably organised and from the terminal I can easily open anything I need to
I guess it's preference. To me, it seems like a waste, but I have yet to find an IDE that does projects and which does not feel sluggish and crap.
>>
Molly Fanninghood - Fri, 29 Jan 2016 07:05:28 EST ID:iqiK9pKW No.35082 Ignore Report Quick Reply
>>34971
I'm sorry if I ballsed your thread up OP. I asked a little question and now nobody is talking about your question
>>
Nigger Dopperway - Sat, 30 Jan 2016 10:20:54 EST ID:Dt0fmYlS No.35085 Ignore Report Quick Reply
>>35079

Well, Java forces you to put every public class in its own file. C# and some C++ programmers tend to do this by convention, as well.

>>35081

I could see that being doable at 12k LOC, but there's no way that's sustainable when you hit 100k LOC or even 1 million LOC. Not many one-person projects get that large, but it does happen, and for a lot of us (though perhaps not OP in this case) these projects are side projects. Using the same tools that you do at work cuts down on mental context-switching leads to better productivity.

Plus, even for small projects, I've found that using an IDE for debugging beats using a command-line debugger. Visual Studio's "parallel stacks" view in particular is fantastic. I showed that tool to a greybeard at work the other day and it blew his mind. I mean, look at this: https://msdn.microsoft.com/en-us/library/dd998398.aspx


table by Samuel Mimmleville - Sun, 17 Jan 2016 22:43:07 EST ID:FXoIGgo7 No.35021 Ignore Report Reply Quick Reply
File: 1453088587136.jpg -(136962B / 133.75KB, 742x500) Thumbnail displayed, click image for full size. 136962
so I have a simple table on my website and I am using a filter script on it that shows the rows that pass the filters, I want only the first column info to be shown so I have hidden all the other columns.
My problem is I want the first column info (images) to be presented horizontally like a gallery instead of vertically, since I am not very advanced is there any way to do this using html table or do I need divs?
>>
Archie Missleson - Mon, 18 Jan 2016 01:42:22 EST ID:FZqsCuoJ No.35024 Ignore Report Quick Reply
>>35021
It shouldn't be too hard. For each row of your table you should have:
<tr><td>your table row data</td></tr>
instead just have one set of <tr> tags with multiple <td> tags and everything should display on the same row.
>>
Cyril Chevingmudge - Mon, 18 Jan 2016 03:33:07 EST ID:tSOrTy4O No.35025 Ignore Report Quick Reply
>>35024
u know tables ur hired!!
>>
Rebecca Sacklefield - Tue, 19 Jan 2016 14:58:08 EST ID:l0DAvjTz No.35030 Ignore Report Quick Reply
>>35021
>My problem is I want the first column info (images) to be presented horizontally like a gallery instead of vertically, since I am not very advanced is there any way to do this using html table or do I need divs?
Use divs inside a flexbox: https://jsfiddle.net/JUq7C/ (Try resizing the output section.)

(Btw, don't complain that nothing supports flexbox; It's not 2010 anymore: http://caniuse.com/#search=flexbox )
>>
Jenny Sonkinstotch - Tue, 19 Jan 2016 23:55:48 EST ID:FXoIGgo7 No.35037 Ignore Report Quick Reply
>>35030
looks good but my filter script is using the table row and column numbers to do the filtering, if I make the table with divs how would the script take the values of each specific column? here is the script with the table id "thetable"

<script type='text/javascript'>//<![CDATA[
$(window).load(function(){
$(document).ready(function() {
$(function() {
$( "#slider-range ).slider({
range: true,
min: 0,
max: 100,
values: [ 0, 100 ],
slide: function( event, ui ) {

$( "#amount" ).val( ui.values[ 0 ] + "% - " + ui.values[ 1 ] + "%");
Comment too long. Click here to view the full text.
>>
Cyril Boddleway - Wed, 20 Jan 2016 12:29:39 EST ID:keuZFxhN No.35038 Ignore Report Quick Reply
>>35037
Learn what MVC is. Embrace it. Use it. https://www.wikiwand.com/en/Model%E2%80%93view%E2%80%93controller

Right now, your code is deviating from MVC. It has the following problems:
(1) It doesn't store the model, but instead parses the html *every* time.
(2) It then modifies the current html, instead of generating new html.
Also, a flex box is *NOT* a table. The only thing the table tag should ever be used for is storing tabular data. (Tabular data is data that has records (aka rows in Excel) and fields (aka columns in Excel).) The table tag should *never* be used for layout, nor for a gallery of items. (A gallery is what's in your pic and my fiddle.)


no subject here by Chim Richalds - Tue, 19 Jan 2016 18:39:36 EST ID:3WnFni9j No.35031 Ignore Report Reply Quick Reply
File: 1453246776407.jpg -(37645B / 36.76KB, 480x360) Thumbnail displayed, click image for full size. 37645
Hey yall, I've been working on a method that receives two strings as parameters. The method returns the concatenation of both strings BUT removes the duplicate characters. (e.x. "Red" and "Edge" become "redge"):

public class justforgiggles
{
public static void main(String []args)
{
String first = "red";
String second = "edge";
String third = "bu";
String fourth = "ull";

String concat = "";
String concat2 = "";
String finalConcat;
System.out.println(first.compareTo(first));
Comment too long. Click here to view the full text.
>>
Phoebe Druffingstone - Tue, 19 Jan 2016 19:07:09 EST ID:FZqsCuoJ No.35032 Ignore Report Quick Reply
>>35031
You are getting this error because char is a primitive type, so you cannot use compareTo

You can simply use the == operator:
second.charAt(i) == third.charAt(i)
>>
Jenny Blathershit - Tue, 19 Jan 2016 19:09:10 EST ID:zL5sUtUX No.35033 Ignore Report Quick Reply
The pro way to solve this is to find an off the shelf object that does exactly what you need it to do: accept only unique elements and preserve their order. I don't use Java so I can't recommend anything. I'm not reading that mess, but I will tell you that the clean way to do this yourself is to have one method that returns the comparison result for one pair of strings and then have some separate logic for managing the inputs and their order.
>>
Chim Richalds - Tue, 19 Jan 2016 20:18:14 EST ID:3WnFni9j No.35034 Ignore Report Quick Reply
>>35032
Currently working on this new version:

String first = "red";
String second = "edy";
String concat = "";

for(int i =0;i<first.length();i++)
{
for(int j =0;j<second.length();j++)
{
if(first.charAt(i)==second.charAt(j))
{
concat = first.charAt(i)+ concat;
}
Comment too long. Click here to view the full text.
>>
Phoebe Druffingstone - Tue, 19 Jan 2016 21:31:25 EST ID:FZqsCuoJ No.35035 Ignore Report Quick Reply
>>35034
What if, instead of comparing the characters in the Strings first and second, you compare the characters with what you have already added to the concat String

for each character in first
if character is not in concat, add it
for each character in second
if character is not in concat, add it


Want to learn a programming language, what is viable for entry level job in this field?. by Samuel Borrykadge - Mon, 11 Jan 2016 06:50:41 EST ID:08oSjLUK No.34980 Ignore Report Reply Quick Reply
File: 1452513041652.png -(1982677B / 1.89MB, 1280x1024) Thumbnail displayed, click image for full size. 1982677
What is the best, or a viable coding or programming language, to learn that can help me get a job working from home on my computer, or if in an office where there will be very minimal interaction with customers?

Keep in mind I literally have no experience at all with coding or programming. I am just interested in learning something because I'm already constantly on my computer and my favorite type of jobs have been ones where I worked from home online. It's always been a curiosity, but at the same time seemed a bit intimidating.

Right now I have 5 options I could start on right away. Javascript, jQuery, PHP, Python and Ruby.
Which one would be lest to learn for a beginner that can be self taught? If all of these are bad choices please tell me and point me in the right direction. Any advice from those experienced will be much appreciated.
>>
Martha Puzzlenutch - Mon, 11 Jan 2016 07:37:26 EST ID:3xMzJMUa No.34981 Ignore Report Quick Reply
>>34980
(1) jQuery is not a language; It's a Javascript library.
(2) I'd suggest learning Python first; It has the least amounts of skulldiggery in it. After that, learn all the rest (and Java, C, C++, C#, etc), becuase once you know a single imperative object-oriented language (which all those are), learning another is just a matter of taking a day to memorize it's standard library.
(3) HTML and CSS are very useful languages to know, because they're what every webpage is written in. (Warning: Webpage/Interface design is nearly a whole field itself. Please don't try to design a webpage/interface if you have no idea how, because you'll probably make an unusable mess that'll just confuse and anger users. Before you design **anything**, whether it's a computer interface, a door handle, or a chair, you should first read "The Design of Everyday Things" ( http://www.amazon.com/The-Design-Everyday-Things-Expanded/dp/0465050654/ ))
(4) Honestly, it's unrealistic to expect that you'll become a competent programmer in a week, a month, or even a year. It took me 3 years before I started writing code that I could come back to a couple months later and not be disgusted by.
>>
Walter Trotbanks - Tue, 12 Jan 2016 15:05:19 EST ID:VROTnfYj No.34987 Ignore Report Quick Reply
Start by reading one of Zed Shaw's free books, they are all free online
http://learnpythonthehardway.org/book/ he also has a free Ruby book.

After try an intro to computer science class like this one
https://www.edx.org/course/learn-program-using-python-utarlingtonx-cse1309x
And a specific web programming course like this awesome one (mainly Rails/Java)
http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-170-software-studio-spring-2013/lecture-notes/

Or pay for tuition to a remote codeschool
https://www.bloc.io/
http://www.vikingcodeschool.com/ who will get you entry positions after.

Get some book on professional software programming such as Code Complete, Mythical Man Month, or The Practice of Programming. I've read all 3, have the 90s version of Code Complete it's still very relevant.

Get a book on web app security so you don't fuck everything up like The Web Application Hacker's Handbook.
Comment too long. Click here to view the full text.
>>
Walter Trotbanks - Tue, 12 Jan 2016 15:19:14 EST ID:VROTnfYj No.34988 Ignore Report Quick Reply
>>34987
Oops, there's also Stockfighter you can try, it's a CTF style game, free, no time limit sort of job screening startup. If you pass all the levels you're ready for employment somewhere. https://www.stockfighter.io/

You technically just need any of the Zed Shaw books to start, look up anything online you don't understand and learn as you go.
>>
Hugh Honeybanks - Tue, 12 Jan 2016 15:37:24 EST ID:5q2tULje No.34989 Ignore Report Quick Reply
If you don't know C on a fundamental level start there, if you do python.

The reason you absolutely want to know some C is that knowing about stuff like pointers and memory allocation on a practical level helps you avoid writing bad code in other languages.
It also is also important to know the most fundamental programming idioms that are present in C, even if you don't use them in other languages.
You don't have to be able to write complete applications in C, but you'd want to be able to read it.
>>
Jenny Simmerwater - Tue, 12 Jan 2016 20:57:33 EST ID:VROTnfYj No.34992 Ignore Report Quick Reply
>>34989
The Harvard intro to CS course covers a lot of this and is designed for people with zero experience https://www.edx.org/course/introduction-computer-science-harvardx-cs50x

Week 0
Binary. ASCII. Algorithms. Pseudocode. Source code. Compiler. Object code. Scratch. Statements. Boolean expressions. Conditions. Loops. Variables. Functions. Arrays. Threads. Events.
Week 1
Linux. C. Compiling. Libraries. Types. Standard output.
Week 2
Casting. Imprecision. Switches. Scope. Strings. Arrays. Command-line arguments. Cryptography.
Week 3
Debugging. Security. Searching. Sorting. Bubble sort. Selection sort. Insertion sort. O. Ω.
Week 4
Θ. Merge sort. Recursion. Pointers. Dynamic memory allocation.
Week 5
Stack. Heap. Stack overflow. Pre-processing. Compiling. Assembling. Linking.
Comment too long. Click here to view the full text.


11bx1371 by Martha Soshhood - Tue, 12 Jan 2016 18:51:35 EST ID:0Tyj7XZp No.34991 Ignore Report Reply Quick Reply
File: 1452642695734.jpg -(40655B / 39.70KB, 585x400) Thumbnail displayed, click image for full size. 40655
Did you hear about 11B-X-1371?

Pretty interesting cryptographic puzzle. Well apparently there's a part two now that hasn't been solved yet.
>>
Jenny Simmerwater - Tue, 12 Jan 2016 21:02:17 EST ID:VROTnfYj No.34993 Ignore Report Quick Reply
Too much viral marketing/production, I will end up like that kid in the Christmas Story who gets the secret decoder ring only to discover it's just a marketing gimmick.


Android development tools by Sidney Bardworth - Sat, 26 Dec 2015 03:57:56 EST ID:vI/miFVm No.34934 Ignore Report Reply Quick Reply
File: 1451120276398.jpg -(194256B / 189.70KB, 600x900) Thumbnail displayed, click image for full size. 194256
I am having difficulty getting on with Android Studio. Just extracting the zip file creates nearly 800 megabytes of fluff. And it runs really slowly, it takes more than two minutes for it to redraw the window. Yes, I have a puny computer. And Eclipse is also not that light. So I want to start developing with some more sensible tools. With my non-android projects I use Geany which I like.

But when I've written my Java into the files, and I have an appropriate build.xml, how then can I make an APK out of this and have it deployed to my device? This is the question that has been bothering me.
1 posts omitted. Click Reply to view.
>>
Doris Cluddledutch - Mon, 28 Dec 2015 22:06:46 EST ID:q3YK9akD No.34941 Ignore Report Quick Reply
I program Android applications in Guile Scheme and use this to cross compile to any platform http://www.lambdanative.org/

It was specifically designed for sensor hacking, so I can do a lot of shit with the censors that you can't easily do with Eclipse/Studio/Java because it would take me months of work.

You can build Android studio from command line http://developer.android.com/tools/building/building-cmdline.html if you don't want to load it up, or you can rent an AWS instance and build it on that if it takes too long. That's what I do since I am running OpenBSD and don't have BSD toolchains for things like Blackberry App building so write it on a laptop then rent a server for a few minutes to build it.
>>
Doris Cluddledutch - Mon, 28 Dec 2015 22:07:22 EST ID:q3YK9akD No.34942 Ignore Report Quick Reply
>>34941
>censors
*sensors derp
nb
>>
Hugh Bonnerlock - Tue, 29 Dec 2015 05:31:25 EST ID:OheqWBBY No.34943 Ignore Report Quick Reply
>>34934
Android studio hasn't been using eclipse in years. If you found a version that does, I assume that's your problem.
The now-in-use IDE — intelliJ IDEA — is probably the best IDE I've used. Enough so that when I'm doing
android development with my linux command line tools I sometimes feel a little lost.

That said, it is not insane to do some smaller learning projects without any IDE.
>>
Betsy Brallyfuck - Wed, 30 Dec 2015 04:29:17 EST ID:+i7/ywPj No.34947 Ignore Report Quick Reply
>>34943
Android Studio has never used Eclipse, but it only left beta a year ago. It replaces Eclipse + ADT which I think is still supported. nb.
>>
Charles Beblinghood - Mon, 11 Jan 2016 18:09:45 EST ID:8gl+mZ4G No.34983 Ignore Report Quick Reply
>>34934
Full time decent android dev.
Download Android studio.
Follow tutorials and make stupid apps.
UPLOAD THEM ! and stick ads on them. only 25 bucks ...
Don't use the emulator, download genymotion instead.
Add google analytics and crashlytics to every app.
Follow androidweekly and circlejerk/r/androiddev.
Find a project you really love and push through the learning curve.
Good luck ;)


Extract Data from Web-pages by Oliver Nicklehood - Fri, 23 Oct 2015 22:00:08 EST ID:TZ2ht1Xk No.34772 Ignore Report Reply Quick Reply
File: 1445652008229.jpg -(33517B / 32.73KB, 412x280) Thumbnail displayed, click image for full size. 33517
I'd like to automate a task to extract price data from hotel rooms at marriott which uses an MI file extension:
https://en.wikipedia.org/wiki/Mason_%28Perl%29
and the result page URL doesnt contain any info about your search:
https://www.marriott.com/search/findHotels.mi

So where do I even begin here? Step 1 would be to figure out a way to go through every page and click every "View Rates" link.
What language is good for web info extraction? Preferably something similar to c++ or python.
Thank you
3 posts omitted. Click Reply to view.
>>
Matilda Nidgedale - Sun, 08 Nov 2015 18:01:43 EST ID:TZ2ht1Xk No.34811 Ignore Report Quick Reply
As Im researching Selenium, I'm finding that 90% of the users are Indian.
What's the connection between Indians and Web Scraping?
>>
Archie Pittforth - Tue, 10 Nov 2015 13:52:38 EST ID:OheqWBBY No.34813 Ignore Report Quick Reply
>>34811
Selenium is a test environment for web applications.
You probably know the connection between Indians and testing.
>>
Here is a quick console app I wrote in C !959SuemFLI - Wed, 23 Dec 2015 02:53:44 EST ID:+6d1kOO+ No.34923 Ignore Report Quick Reply
>>34772
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string Url;
Console.Write("Enter URL To Extract:");
Comment too long. Click here to view the full text.
>>
Alice Sangerhit - Wed, 23 Dec 2015 18:36:11 EST ID:Ew1xe7Or No.34930 Ignore Report Quick Reply
>>34772
Here's an initial implementation using python's mechanize. It's pretty ghetto, but it works. It would be better if the search urls were constructed and the html scrapings came from BeautifulSoup or some other parser.

http://pastebin.com/9tU66dVm
>>
Nell Cudgedut - Fri, 08 Jan 2016 21:37:26 EST ID:TZ2ht1Xk No.34975 Ignore Report Quick Reply
>>34930
>>34923
I am the OP and I approve of these posts.
Yeah thanks, I'll try these out soon. I tried using Selenium but gave up pretty quick when I couldn't get consistent test runs out of it.


if-then-else in haskell by Edwin Fosslemedge - Fri, 18 Dec 2015 05:33:45 EST ID:mQ9i+bCn No.34900 Ignore Report Reply Quick Reply
File: 1450434825828.jpg -(142351B / 139.01KB, 1920x1080) Thumbnail displayed, click image for full size. 142351
Just a question to broaden my understand. consider the following

map (\x -> if p x then f x else g x) xs

  1. is there a way to write this statement without using if-then-else conditionals. The obvious choice would be to define a function and do it, but that would defy the pupose of having a lambda.

2. is this the only situation in haskell where we need to explictly use if-then-else conditionals? or are there other similar situations.

thanks a lot in advance.
>>
John Finningdog - Tue, 22 Dec 2015 16:08:47 EST ID:Ky+8GJE7 No.34912 Ignore Report Quick Reply
I know nothing of haskell, but I'm guessing the if, then, else statements are already functions that know what to do with the rest of the sequence based on my extremely limited Lisp understanding.
>>
Shitting Foggleshaw - Fri, 08 Jan 2016 08:39:50 EST ID:7xy5rzLS No.34972 Ignore Report Quick Reply
(1) Well, you could use `bool` ( https://hackage.haskell.org/package/base-4.8.1.0/docs/Data-Bool.html#v:bool ), but imo if-then-else is easier to read.

Anyways, being somewhat relevant, the most commonly used special map function that comes to mind is `mapMaybe` ( https://hackage.haskell.org/package/base-4.8.1.0/docs/Data-Maybe.html#v:mapMaybe ), which combines `map`, `filter`, and `fromJust`.
(2) You never "need" to use if-then-else conditionals. You can usually do something more elegantly with pattern matching or guards, but sometimes if-then-else is the most elegant.


<<Last Pages Next>>
0 1 2 3 4 5 6 7 8 9 10 11
Report Post
Reason
Note
Please be descriptive with report notes,
this helps staff resolve issues quicker.