AnonAccount: What is it, and what does it do? - Q&A Thread
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


simple irc nick change perl script by Hedda Wemblelut - Sun, 02 Feb 2014 15:41:58 EST ID:6X4OlJnJ No.30863 Ignore Report Reply Quick Reply
1391373718746.jpg -(29539 B, 253x252) Thumbnail displayed, click image for full size. 29539
So I suck at programming in general, and I'd like to make a really simple perl script for IRC.

Basically just a script that changes my nick back when I have joined with a new nick because I disconnected and my normal one was taken.

Say my nick is nick, but if that's taken it tries with nick_ and then nick__ etc

Then when I join as nick_ after a little bit nick will disconnect from ping timeout, and I just want a script that changes nick_ back to nick automatically without me having to do it manually.
Not that it's a lot of work but I mean a script like this should be like 5-10 lines of simple code or something.

So, anyone care to paste this with a quick explanation of what does what or something (I'm sure there's already a dozen simple ones like this made)
2 posts omitted. Click Reply to view.
>>
Ernest Dandlefat - Sun, 02 Feb 2014 19:49:38 EST ID:6X4OlJnJ No.30869 Ignore Report Quick Reply
>>30866
Fuck, sorry, I use xchat/hexchat, not irssi.

Also can I just not make it look for the line "nick has quit" and then do /nick nick
I realise I should have used something else than "nick" for the explanation purposes.
>>
Ernest Dandlefat - Sun, 02 Feb 2014 19:59:06 EST ID:6X4OlJnJ No.30870 Ignore Report Quick Reply
>>30869
Also should mention that I just need it as simple as possible, basically just a script that, if it sees the line "mynick has quit" it outputs "/nick mynick"

It's for one nick on one network only, pretty sure this can be done with only a few lines.
>>
Emma Cabblefure - Sun, 02 Feb 2014 21:03:05 EST ID:vhgZIlcV No.30871 Ignore Report Quick Reply
>>30869
Right, I since you are most likely on the same channels as your zombie-self, you can just wait for its quit message.

I tried to look up events and hooks in xchat scripting but couldn't make any sense of it, so I cannot really help you.
>>
David Brerringshaw - Mon, 10 Feb 2014 08:52:11 EST ID:6X4OlJnJ No.30925 Ignore Report Quick Reply
bump
>>
Phoebe Duttingbig - Mon, 10 Feb 2014 12:04:27 EST ID:CmcHTLaD No.30927 Ignore Report Quick Reply
>>30925
In the time you've been waiting, you probably could've learned to make it for yourself by now, lol. http://xchatdata.net/Scripting/BasicPerlScript

Can you modify the irssi one to xchat? Have you considered changing clients?

I don't know anything about IRC scripts and my searches haven't turned up anything, so I can't really help other than giving a free bump.


how to CSS well by Charlotte Goodford - Sat, 08 Feb 2014 14:26:59 EST ID:ak5YKDGE No.30918 Ignore Report Reply Quick Reply
1391887619987.jpg -(86311 B, 576x529) Thumbnail displayed, click image for full size. 86311
How do I write CSS for a website well.
Any guides or references as to properly write css for a webpage so that it is easily to manage and change?
More importantly how do I name classes and ids so that if someone else wanted to attach their own CSS they can easily manage.
>>
Alice Blathershaw - Sun, 09 Feb 2014 10:58:09 EST ID:sKNkgaDZ No.30921 Ignore Report Quick Reply
>>30918
I don't have a good guide for you, but you might want to try out Stylus to write your CSS.

http://learnboost.github.io/stylus/


Anybody good with natural language processing (data extraction from english text)? by The Doktah - Sat, 01 Feb 2014 12:53:08 EST ID:Jndd7QHi No.30855 Ignore Report Reply Quick Reply
1391277188153.jpg -(444232 B, 1920x1080) Thumbnail displayed, click image for full size. 444232
I will love you guys if you can help me with this.

I have a program I am writing, and as part of it, I need to extract meaningful data from job postings online (keywords, requirements, etc...).

So for example, if the following text appeared:

"REQUIREMENTS:
  • blah blah blah
  • Must give good head, etc."

I need to be able to detect that the points above are JOB REQUIREMENTS, and then be able to understand that "give good head" relates to the skill "Giving head"; I then will be able to rework this data to continue to other things.

How might I accomplish this? I have started looking into NLTK, but I am FUCKING LOST. Like, more lost then I have been in ages with programming :\ I don't mind learning it, as long as someone could point me in the right direction, or preferably tell me what it is that i actually need to do with NLP to make this happen.

For the record, I am using Python, and will either be using Python's native NLTK module, or the Standford Natural Language Processing Java application...
>>
Reuben Nenningsuck - Sat, 01 Feb 2014 14:24:44 EST ID:QhBNOwJO No.30856 Ignore Report Quick Reply
>>30855
>How might I accomplish this? I have started looking into NLTK, but I am FUCKING LOST. Like, more lost then I have been in ages with programming
I hope that you've found a new respect for what the human brain does effortlessly every day.

Anyways, I've never used NLTK, but I guess what you'll want to do is:
1) Remove adjectives: must give good head -> must give head (Use 'falsefilter(lambda t: t[1] == 'JJ', list)'.)
2) Remove helping verbs: must give head -> give head
3) Turn verbs into nominals: give head -> giving head
4) Compare the result with what you want: giving head ==? giving head -> true (May the Lord help you if they wrote something like "giving head isn't required".)

Again, I stand in awe at the human brain.
>>
Nathaniel Croblingtere - Sat, 01 Feb 2014 22:59:56 EST ID:5DncEJD6 No.30858 Ignore Report Quick Reply
The answer depends on what exactly you're trying to accomplish, and how much data you have to work with. What's your success criteria?
>>
Phineas Drennernot - Mon, 03 Feb 2014 12:15:58 EST ID:cqWv3Btd No.30873 Ignore Report Quick Reply
Free NLP course on Coursera for anyone interested:
https://www.coursera.org/course/nlangp
>>
Cornelius Pittman - Tue, 04 Feb 2014 13:59:09 EST ID:1bnPs4kf No.30890 Ignore Report Quick Reply
theres a nlp book using python. it is somewhere in one of those python programming book torrents with 200 books


clickfraud by Shitting Crummlenudge - Tue, 20 Aug 2013 04:47:48 EST ID:sNSHZCqU No.29437 Ignore Report Reply Quick Reply
1376988468964.jpg -(41167 B, 714x650) Thumbnail displayed, click image for full size. 41167
Sup!
I need a bot for clickfraud (click out google AdWords Ads). Could somebody help me to find it? THNX
31 posts and 13 images omitted. Click Reply to view.
>>
Nigger Billinggold - Thu, 14 Nov 2013 08:29:14 EST ID:HMketBGf No.30275 Ignore Report Quick Reply
how about some bump?
>>
Henry Bunningfork - Fri, 15 Nov 2013 20:34:40 EST ID:PQzGpXuE No.30284 Ignore Report Quick Reply
1384565680334.jpg -(59409 B, 500x667) Thumbnail displayed, click image for full size. 59409
>>30275

Why, this thread is horrible.

>>29800
>>29801

You are stupid and have no idea what the fuck you are talking about, but you don't like what I'm saying, so you are blaming "emotional prejudice" for my posts.

Running a public company any other way is typically called an agency problem, people like you get fired because you create them. A "strong business leader" makes decisions that are in the best interests of various stakeholders, the most important stakeholders are the owners, the owners are not interested in your silly fucking idealism and pipe dreams, they buy shares to make money.

It's ugly and unfair but it's the way things work.

NB this thread has AIDS
>>
Jenny Chodgefot - Fri, 10 Jan 2014 07:40:29 EST ID:KYheY6Hs No.30728 Ignore Report Quick Reply
>>30284
I like this thread, sorry.
>>
Charlotte Worthingwell - Sun, 12 Jan 2014 11:41:04 EST ID:jDVmni0g No.30739 Ignore Report Quick Reply
>>29437
since this thread has been here for quite some time im going to assume the OP has never came back but incase he has...Auto-it its skiddy as fuck but its exactly what you want for this legal or not who cares learn it and pwn(or click in this case)
>>
Matilda Cherrylock - Sun, 02 Feb 2014 17:15:51 EST ID:sNSHZCqU No.30867 Ignore Report Quick Reply
1391379351300.jpg -(53625 B, 198x200) Thumbnail displayed, click image for full size. 53625
>>30739
OP is here. Thanks a lot!


nub question by Cyril Clunnerchadge - Sun, 02 Feb 2014 10:56:02 EST ID:CmcHTLaD No.30860 Ignore Report Reply Quick Reply
1391356562602.jpg -(34136 B, 599x473) Thumbnail displayed, click image for full size. 34136
If I had a list of names, how would I make notepad++ format it to "this format","for the","RNG lists"?

Some of
the lists
are like this

And some just have a space between otherwise good formatting.

I tried searching for the answer already but didn't have much luck.
>>
Samuel Clumblebanks - Sun, 02 Feb 2014 12:12:01 EST ID:3asJfJ9z No.30861 Ignore Report Quick Reply
>>30860
lol i was just about to make this thread.

hopefully somebody has an answer.
>>
Hedda Wemblelut - Sun, 02 Feb 2014 15:15:14 EST ID:6X4OlJnJ No.30862 Ignore Report Quick Reply
http://www.relabit.com/?p=348

This should be exactly what you are looking for.
>>
Cyril Clunnerchadge - Sun, 02 Feb 2014 16:02:41 EST ID:CmcHTLaD No.30864 Ignore Report Quick Reply
>>30862
Works perfectly, thanks!
>>
Martin Tillingson - Sun, 02 Feb 2014 16:57:35 EST ID:giwK3NGE No.30865 Ignore Report Quick Reply
Learning regex is time well spend, and NP++ has a pretty good engine.
Regex Buddy is well worth buying.


How do I avoid this circular import? by Henry Pitthood - Thu, 30 Jan 2014 07:35:14 EST ID:V2gwkTy9 No.30843 Ignore Report Reply Quick Reply
1391085314655.jpg -(471529 B, 920x1200) Thumbnail displayed, click image for full size. 471529
I'm making an RPG. I have a class called Map, which has a 2d array of Tiles, and some tiles have a Warp. A warp points to a map (and a coordinate within that map). This makes sense when I think about it, but it won't compile because it's circular: Map needs Tile, which needs Warp, which needs Map, etc...

What am I doing wrong? What's the right way to design this?
>>
Fucking Sellywad - Thu, 30 Jan 2014 12:13:00 EST ID:D0GuSL2t No.30844 Ignore Report Quick Reply
>>30843
Could the warp just have a reference to the map it will warp you to?
Or some kind of identifier that uniquely defines the map?
>>
Henry Pitthood - Thu, 30 Jan 2014 18:25:36 EST ID:V2gwkTy9 No.30845 Ignore Report Quick Reply
1391124336655.jpg -(343177 B, 1920x1200) Thumbnail displayed, click image for full size. 343177
>>30844
I guess that would work. I could store all the maps in an array/list, and then have the warp hold just an index for it.
>>
Eliza Shakeford - Fri, 31 Jan 2014 02:04:19 EST ID:60jBojSU No.30846 Ignore Report Quick Reply
In some languages like ML this is actually not a problem. You could actually have the warp and map defined based on each other
>>
Barnaby Claywill - Fri, 31 Jan 2014 06:56:12 EST ID:QhBNOwJO No.30847 Ignore Report Quick Reply
1391169372398.png -(3039698 B, 2436x992) Thumbnail displayed, click image for full size. 3039698
>>30846
Well, it doesn't work in Haskell, even if you use "Maybe Warp". (This is how you make things nullable in Haskell. I want this because not every tile warps you somewhere.)

I just tried this in Java, and it half-works. You can define the classes fine, but you can't make a circular instance because it'll complain about referencing a field before it's defined.

How does ML do/allow this? What's the code look like?
>>
Reuben Nenningsuck - Sat, 01 Feb 2014 17:24:56 EST ID:QhBNOwJO No.30857 Ignore Report Quick Reply
>>30847
Btw, I just realized that you could do this in Java, but it'd take two steps. The first step is creating the instance and setting all the non-circular variables, and the second step is setting the circular variable with a destructive function. I'm not sure that I'd want to do this instead of the unique identifier way though.


ASP.NET (User Auth Problem) by John Cullernut - Fri, 31 Jan 2014 15:48:51 EST ID:6GeL5+RM No.30850 Ignore Report Reply Quick Reply
1391201331384.jpg -(144086 B, 450x295) Thumbnail displayed, click image for full size. 144086
Currently doing a college project that involves me having to create a login function and members portal. Basic stuff but it's all new to me.

I've created the index page, a login page and a members portal. I've changed the access rights so only logged-in users can access it and have created a user. Now, when I try to type in the username and password, it tells me the login details were incorrect even though they're not. Is it anything to do with session variables?
>>
Beatrice Tillingspear - Fri, 31 Jan 2014 20:21:48 EST ID:kv8bxsSs No.30852 Ignore Report Quick Reply
log files and debug printfs are your friend.
>>
Polly Hiblingman - Fri, 31 Jan 2014 21:33:01 EST ID:giwK3NGE No.30853 Ignore Report Quick Reply
What sort of password, comparing login details against a database value or wut?


Java Library, Eclipse by John Cullernut - Fri, 31 Jan 2014 09:57:22 EST ID:6GeL5+RM No.30848 Ignore Report Reply Quick Reply
1391180242384.jpg -(115019 B, 795x551) Thumbnail displayed, click image for full size. 115019
I'm aware this may be a stupid question but somebody please help me out. Entirely new to programming so if it's obvious, forgive me.

Won't recognise code like System.out.printn, .toString etc.

Although, it was working previously. I'm bewildered as to why it's just stopped working.
>>
Barnaby Claywill - Fri, 31 Jan 2014 11:59:19 EST ID:QhBNOwJO No.30849 Ignore Report Quick Reply
>>30848
What's the syntax error? Are you trying to one package use another package's code? What's your exact code? (Maybe post it to pastebin.com ? )
>>
John Cullernut - Fri, 31 Jan 2014 15:50:17 EST ID:6GeL5+RM No.30851 Ignore Report Quick Reply
>>30849

I ended up deleting the library and creating a new one from the JRE library. All was working, code was recognised etc but for some reason my college are working on an older version. Since I'm working on a new version, it doesn't even detect the MainController class, even though it is most definitely there.


Advanced webpage background images by Henry Clobberstere - Tue, 28 Jan 2014 07:28:00 EST ID:SU8tfDUG No.30834 Ignore Report Reply Quick Reply
1390912080024.jpg -(7436 B, 294x171) Thumbnail displayed, click image for full size. 7436
Is there a way to make a .gif the background of a webpage AND stretch it out so the image borders and touching the webpage borders WHILE staying in a the original ratio?

pic unrelated
>>
William Henkinlot - Tue, 28 Jan 2014 08:07:11 EST ID:V2gwkTy9 No.30835 Ignore Report Quick Reply
Set these attributes on the class:

background-repeat: no-repeat;
background-size: 100%;

Read this: http://www.w3schools.com/cssref/css3_pr_background-size.asp
And play around with this : http://www.w3schools.com/cssref/playit.asp?filename=playcss_background-size&preval=cover
>>
William Henkinlot - Tue, 28 Jan 2014 08:12:18 EST ID:V2gwkTy9 No.30836 Ignore Report Quick Reply
>>30835
This also works: background-size: cover;

I'm not sure if this is what you want; Your sentence is ungrammatical, and you didn't provide a picture of what you want.
>>
Cyril Wibberbanks - Wed, 29 Jan 2014 19:24:39 EST ID:TEB5/GbU No.30842 Ignore Report Quick Reply
>>30836
This is the correct answer. For posterity you'll want to add additional background-size properties with the -moz- and -wekbit- prefixes. There's a couple of polyfills available for older versions of IE (8 and below, I think) should you need them.

Also, Mozilla Developer Network > W3Schools.


JAR files and Eclipse by Phineas Tillingway - Tue, 28 Jan 2014 21:04:53 EST ID:NDFKFNiC No.30839 Ignore Report Reply Quick Reply
1390961093443.png -(215559 B, 500x357) Thumbnail displayed, click image for full size. 215559
my prof had us download a jar file, then create a eclipse java project to be based on the jar
i have created the java project
how do i put the the jar and src files into the java project directory?
>>
Nigel Bondledadge - Tue, 28 Jan 2014 23:30:03 EST ID:xtelIQ1k No.30840 Ignore Report Quick Reply
You can put the jar wherever you want, though I would recommend a dedicated /libs directory in the project if that's what it is. You're probably supposed to import the jar into the build path manually. Eclipse has a wizard for this.
>>
Nigel Bondledadge - Tue, 28 Jan 2014 23:31:02 EST ID:xtelIQ1k No.30841 Ignore Report Quick Reply
1390969862938.png -(17901 B, 500x420) Thumbnail displayed, click image for full size. 17901
>>30840
Sorry, not a wizard. But it's not hard.


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