Leave these fields empty (spam trap):
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
[*]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


Changing operators by Nigel Tootspear - Thu, 05 Feb 2015 21:13:44 EST ID:2j4n9RQQ No.33325 Ignore Report Reply Quick Reply
1423188824204.jpg -(111427 B, 811x1211) Thumbnail displayed, click image for full size. 111427
While a java program is running is there any way to change operators in an equation. For example, we have numbers 1,2,3 and operators + - / *. how could i make the program run "1+2+3" then "1+2-3", "1+2/3"......"1/2*3".
14 posts and 1 images omitted. Click Reply to view.
William Brevingdat - Thu, 12 Feb 2015 11:06:59 EST ID:0fDyrctt No.33387 Ignore Report Quick Reply

I could see a functional GPU shader language taking off, if it grew to be as stable as other shader languages. Anything that's involves massive parallelization would benefit from a functional approach.
Faggy Bickleson - Thu, 12 Feb 2015 11:23:38 EST ID:OheqWBBY No.33389 Ignore Report Quick Reply
The only shading language I know, glsl, and the two most common gpu-compuation languagues, openCL and Cuda, are
desgined in a fashion that lets the programmer take the most out of parallelization. It would be insane if they didn't.

The reason people chant the mantra "functional is good for parallelization" is that immutable structures can be shared.
Unfortunately in a GPU most (or maybe most, but not the fastest) of the memory cannot be shared, not between all the cores
on one GPU, and even less between multiple GPUs. To get the most out of the computational capacity the devices have to
offer, the person writing the program will have to manually set every piece of information in the exact locations he needs
them to be in the memories, a thing most often not possible in functional languages.
Fanny Hidgewater - Sat, 14 Feb 2015 01:47:02 EST ID:0fDyrctt No.33396 Ignore Report Quick Reply

That's only true of the input and outputs, though.
Charles Snodbury - Sat, 14 Feb 2015 03:35:52 EST ID:OheqWBBY No.33397 Ignore Report Quick Reply
What do you mean?

First of all: Intermediate values are even slower to pass around all cores as not only
are we forced to use the slowest memory available on the GPU, but we need to
synchronize the cores, which is the second thing on the list of things to avoid when
writing GPGPU code. First one is using slow memory.

Second: In the functional language definition I hold dear the return value of a function
can only depend on the input it gets. This means that if we shared some intermediate
values, the program would not, by some definition, be functional.
More importantly this is the functional in functional program that allows for the
possibility of clean implicit parallelization, and we would lose it.

Sorry if I completely misunderstood you.
Fanny Hidgewater - Sat, 14 Feb 2015 12:24:47 EST ID:0fDyrctt No.33398 Ignore Report Quick Reply

What I mean is that, at least in the shaders I've written, the memory locations of the input and output have already been specified by the time the shader gets to my code, and everything that happens in between is a temporary value that goes in some register or other.

c# binary string by Isabella Suckleforth - Fri, 13 Feb 2015 18:19:18 EST ID:CaxHBeL+ No.33395 Ignore Report Reply Quick Reply
1423869558840.jpg -(57855 B, 500x375) Thumbnail displayed, click image for full size. 57855
Sup /prog/, I'm trying to help out someone on /vg/ that wants a tool to manipulate doom .wad files to make them interoperate better. It seems like an interesting project and I like doom so win-win for everyone.

WAD files contain C-like code that defines the changes made by that particular WAD. The problem is that when you want to use multiple WAD files at once there can be naming conflicts between the internal functions of each WAD. It seems that WAD developers define their functions, or scripts as they are called, with numbers for names, and the numbers are being reused between different WADS.

i.e. a function signature might look like; script 123(string x)

Essentially, what I need to do is open a WAD file, do a regex search for 'script <something>' and replace that with something unique that won't conflict between WADs.

Now, there are two types of WAD file; 'old style' and a new, zip style. For now, I'm concerned with the old style. Having examined a few examples I've found the 'magic bytes' that identify the old type and managed to knock up a simple GUI to search for and identify them. What I need to do now is open each file and replace all the occurrences as above. The problem I'm having is that the old style WADs are basically the C files concatenated with zipped/encoded/compressed assets such as music and artwork. A header, then plain text, then binary data, then maybe some more plain text.

I'm trying to find a way to load a WAD file into memory (they are generally less than 50MB), regex replace strings and then save the file in as close to the original binary file as possible. I've not much experience of working on raw bytes before and my google-fu is failing me. My current result is that I can do all the above, but because I'm working with strings rather than raw bytes for the matching, I'm writing junk binary data. Here's what I've been trying so far;

File.Copy(thisWad.path, tempFilePath,true);		//make a copy of the orig file
Comment too long. Click here to view the full text.
Isabella Sattingnut - Sat, 14 Feb 2015 13:00:19 EST ID:CaxHBeL+ No.33399 Ignore Report Quick Reply
Not expecting a reply to this wall of text but if anyone cares here's a way to do this using thw windows powershell, there are similar ways to do it using sed under linux. nb

cat input.wad | % { $_ -replace "script ","script asdf-" } | Set-Content output.wad
Isabella Sattingnut - Sat, 14 Feb 2015 14:09:41 EST ID:CaxHBeL+ No.33400 Ignore Report Quick Reply
Here's how to do it in c#, might need some more testing

        public byte[] ReplaceASCIIStringInBytes(byte[] InputBytes, string SearchString, string ReplaceString)
byte[] ret = null;
byte[] searchBytes = System.Text.Encoding.ASCII.GetBytes(SearchString);
byte[] replaceBytes = System.Text.Encoding.ASCII.GetBytes(ReplaceString);
List<byte> outputBytes = new List<byte>{};
int searchIndex = 0;
int searchLength = searchBytes.Length - 1;

for (int x = 0; x < InputBytes.Length; x++)
Comment too long. Click here to view the full text.

Some kinds of relationship are not possible by Jarvis Blackshit - Thu, 12 Feb 2015 11:20:56 EST ID:D9QuX8lI No.33388 Ignore Report Reply Quick Reply
1423758056347.jpg -(61731 B, 499x750) Thumbnail displayed, click image for full size. 61731
Comment I am learning how to use SQL to query databases. I am using Microsoft Access 2000 (I know it's crap but it's what I need to use for work) and I have a question about why some things do not work.

I have a table A which I left join to tables B and C. Tables B and C are left joined to table D.

-- OR --

I have table A which is left joined to table B, which is in turn inner joined to table C.

Why are such relationships impossible without breaking the query down into subqueries?
Walter Gendlededging - Fri, 13 Feb 2015 09:57:33 EST ID:GpPH6sdW No.33393 Ignore Report Quick Reply
> Microsoft Access
That's your main problem. Some other DBMSs can handle those joins.

I don't have insider information on why Access is as limited as it is. However, I've been working with it for near 20 years so I can speculate.

Some restrictions are based on functional dependency. For example, when using GROUP BY you can't select fields you don't group on (except aggregate functions) cause the values of those fields aren't necessarily determined by the grouping fields. Access is conservative here, while MySQL is permissive - if you select fields which aren't functionally dependent on the grouping fields, which value(s) you'll get isn't guaranteed. This design attitude pervades Access - you'll be protected from yourself, like it or not.

Other restrictions are to prevent Access from detracting from Microsoft's bigger offerings, like SQL Server and Visual Studio. I've watched Access's UI get less efficient over time, presumably to further discourage any serious projects. To get an SQL window in modern versions of Access requires 6 steps, and it's one of the things knowledgeable users do most frequently. Some seemingly arbitrary query restrictions could similarly be meant to limit Access's usefulness.

For example, one can SELECT * FROM (a INNER JOIN b ON a.x = b.x) INNER JOIN c ON a.y = c.y AND b.z = c.z, but it doesn't work if the AND is changed to an OR. Why not? It might be due to limitations in their query planner or optimizer. If we use any LEFT JOINS then neither operator works. Access's parenthesized join syntax might also be due to a limited query planner.

Anyway, Access is ok for small single-user-at-a-time databases. I strongly recommend against using it concurrently - it has a tendency to corrupt autonumber indices in those situations. If you must, at least try designing for external or natural keys rather than autonumber surrogates, and be damn sure you create an primary or unique index for every autonumber.
Frederick Crendlefuck - Sun, 15 Feb 2015 04:41:58 EST ID:D9QuX8lI No.33404 Ignore Report Quick Reply
Thanks for your reply. I'm kind of relieved that some of this is due to a crappy DBMS, since I could not see much of a logical reason why these things should be impossible

>Anyway, Access is ok for small single-user-at-a-time databases. I strongly recommend against using it concurrently - it has a tendency to corrupt autonumber indices in those situations.
At my work we do a lot of our ERP in microsoft access. We've got maybe 30 or 40 people who use it at the same time every day. Nearly every single week we need to take the system offline because of this. And then, "Oh where is that order gone? I swear I put it on this morning"

Learning code for noobs by Lydia Pellerkadge - Tue, 03 Feb 2015 17:35:08 EST ID:i6WKwaja No.33318 Ignore Report Reply Quick Reply
1423002908142.jpg -(82108 B, 500x368) Thumbnail displayed, click image for full size. 82108
So I decided to teach my self to code. I have no prior code experience other than HTML. I first started with java on code academy but then after reading C# would probably be more widely usable as a skill I stopped using code academy and swiched to unity's lessons on their site. I like it alot.

Learning to code through the medium of video games makes it alot easier for me to digest and understand.

Do you guys have any other suggestions of places and methods/mediums for noobs to practice their coding skills?

Pic related, it's me coding
1 posts omitted. Click Reply to view.
Wesley Besslebine - Tue, 03 Feb 2015 21:37:02 EST ID:i6WKwaja No.33321 Ignore Report Quick Reply
Well technically I was born in the late 1980's so yes. Technically I'm from the past. Aren't you too?
Fanny Tootridge - Wed, 04 Feb 2015 18:59:28 EST ID:elQqG0rq No.33323 Ignore Report Quick Reply
I do appreciate the post containing 0% helpful information.
12/10 would reply again
Albert Bommlestone - Thu, 05 Feb 2015 00:58:42 EST ID:PW18fUqr No.33324 Ignore Report Quick Reply
Betsy Grandham - Thu, 05 Feb 2015 22:52:21 EST ID:rn5g8/0H No.33327 Ignore Report Quick Reply
Forget about what language will be 'most useful'. They are all useful, you just don't know how to implement them yet usefully. Forget about codeacademy, you need to learn how to develop software full life cycle if you actually want to learn development instead of just hacking around in whatever language.

http://touch.ethz.ch/ Torrent this book, or buy it. It's what ETH Zurich students read first before anything else. There's also a MOOC for it now: https://webcourses.inf.ethz.ch/se_courses/introduction_to_programming/main_page/

You learn: control structures, algorithms and fundamental data structures, recursion (including theory and implementation), reference and pointer manipulation, inheritance and associated techniques of polymorphism and dynamic binding, topological sort as an example of algorithm and API design, syntax description techniques, important design patterns such as Observer and Visitor, event-driven programming, high-level function closures (including an introduction to lambda calculus) and important shit like version control. There's 30 page intros to Java, C++ and C# to show you how similar they are to the shit you are doing in the book. The final chapter is a detailed introduction to the challenges and techniques of software engineering, from lifecycle models to requirements analysis.

It uses an obscure language called Eiffel, but that doesn't matter (though, Airbus uses it for all it's controls and software and numerous other airlines). After you're finished, read SICP. Congrats, you are now a better developer than 80% of the shitty devs out there.
Shitting Bardford - Thu, 12 Feb 2015 18:14:46 EST ID:zrytthwL No.33391 Ignore Report Quick Reply
That's some interesting material.
I never made it past simple scripts and relatively simple 'advanced hello world' (lol) programs because I could not find a way for myself to get my hands dirty. Unlike fiddling with Windows, Linux, and FreeBSD I was not able to conceive a task to learn through trial and error.

Windows Keylogger by Simon Feddlebury - Sun, 08 Feb 2015 18:46:55 EST ID:ik1Uoo0E No.33353 Ignore Report Reply Quick Reply
1423439215934.jpg -(879394 B, 1024x768) Thumbnail displayed, click image for full size. 879394
Hey guys,
I'm attempting to write a keylogger by only reading the MSDN docs but am running into trouble translating virtual key codes to ASCII values. I'm running this in a low level keyboard hook. I've tried ToUnicodeEx, using MapVirtualKey for the virtual key parameter in ToAsciiEx, GetKeyNameText, LPWORD instead of a char array, using GetKeyboardLayout() etc and I keep getting the same problem, the translation always returns a constant value, in some cases returning 16 bit INT_MAX. Specifically, ascii_char is where the ASCII value is supposed to be. I'm assuming I'm doing something wrong with the ascii_char variable, from my knowledge these type of problems stem from memory allocation and access problems. I've only programmed on Linux before but I doubt this is a Windows specific problem. Could this be related to the hook itself? I'm running this on VirtualBox if it matters. Thank you!

1 posts omitted. Click Reply to view.
Jim Lahey 2.o - Mon, 09 Feb 2015 03:53:23 EST ID:6c8hDo+1 No.33359 Ignore Report Quick Reply
Well I'm not familiar with the win32 api, but it seems like you're trying to print out a string but giving printf an integer value. When printf writes a string, it expects the string to be null terminated. An integer isn't null terminated. So it's probably printing out 'c', then an arbitrary number of values until it sees a null character. On other systems I'm sure it would crash. Try %c instead of %s?
Hedda Goodhall - Mon, 09 Feb 2015 06:59:53 EST ID:ik1Uoo0E No.33360 Ignore Report Quick Reply
I tried that initially and %c prints out a constant character. I tried printing it in a few different ways and the only format that prints out the proper character is %s for some reason. What I don't get is why it seems to be a constant value when treated as an int or a char but changes when treated as a string of characters
Jim Lahey 2.o - Mon, 09 Feb 2015 14:10:41 EST ID:6c8hDo+1 No.33361 Ignore Report Quick Reply
So I looked up the ToAsciiEx prototype and the 4th parameter is an 'LPWORD'. I'm guessing that's 'long pointer.' So you might be getting the same value over and over again because the value you're trying to print is a memory address. It'd make sense since %s expects a pointer and %c expects an integer.

Try printf("%c", *c);
Hedda Goodhall - Mon, 09 Feb 2015 14:46:38 EST ID:ik1Uoo0E No.33362 Ignore Report Quick Reply
Yep, that fixed it. I figured LPWORD was typedef-ed to "long int *", which is why I figured printing "c" would technically be the equivalent to printing "*c" but I guess not. Thank you! Now I just need to figure out how to deal with character shifts. I assumed using GeyKeyboardState() would fix that but it's still printing the shift ASCII code and then the separate code for the actual key pressed.
Hedda Goodhall - Mon, 09 Feb 2015 15:00:36 EST ID:ik1Uoo0E No.33363 Ignore Report Quick Reply
In case there's anyone reading this and are interested in, I figured out the shift problem. I created a PBYTE array of 256 elements called keyboard_state and used it as an input to GetKeyboardState(). I then did

keyboard_state[VK_SHIFT] = GetKeyState(VK_SHIFT);

And the fed this into ToAsciiEx. I'm sure you can use GetKeyState for Control, Alt etc

Android Studio by Ustimo - Tue, 03 Feb 2015 20:15:22 EST ID:ZOLvmWiC No.33320 Ignore Report Reply Quick Reply
1423012522358.jpg -(11081 B, 640x360) Thumbnail displayed, click image for full size. 11081
I'm new on android studio, i know java but i've never programmed an android app, so i want to read some experiences of people using it, another way i found much easier is B4A
Samuel Dendledudging - Wed, 04 Feb 2015 13:47:42 EST ID:be7uRTKi No.33322 Ignore Report Quick Reply
Be prepared to be endlessly confused about the lifecycles of activities, about how certain events should fire but never do, about disjointed or incomplete documentation, about deprecated methods for doing things that google has just never been arsed enough to replace, and a whole wide world of inconsistencies and general strangeness.
Betsy Grandham - Thu, 05 Feb 2015 23:18:31 EST ID:rn5g8/0H No.33328 Ignore Report Quick Reply
I program one library in scheme then export it to iOS/Android/BlackBerry/Windows mobile through an interpreter. http://www.lambdanative.org/

Android Studio is apparently the only good option if you want a GUI IDE, as Eclipse is a piece of trash and Eclipse+ADT bundle no longer maintained. Android Studio is IntelliJ/Jetbrains made IDE.
Esther Criffingway - Sat, 07 Feb 2015 04:46:06 EST ID:HXfRmMUs No.33337 Ignore Report Quick Reply
Android Studio is much better than Eclipse, it'll be even better once 1.1 is release and it's finally possible to run unit tests properly.

Android has quite a few quirks that are hard to get your head around, but it's not like it's orders of magnitude harder than equivalent offerings like iOS. The activity/fragment lifecycles are the big thing that is strange if you're coming from a Java environment, where everything runs as main. A lot of resources (drawables, menus, layouts) are defined as xml, which is pretty nice. Just learn it if you think it's something that would be useful, it won't take too long to get the basics

Connecting Multiple Devices over ADB on Linux by Shit Mallerdale - Sun, 01 Feb 2015 15:02:47 EST ID:Y3ED2UTr No.33310 Ignore Report Reply Quick Reply
1422820967600.jpg -(2339770 B, 2160x3060) Thumbnail displayed, click image for full size. 2339770
Greetings Prog! Pic unrelated.

I normally hang out in /weed/ and /tech/ but come to you today with some questions that I hope one of you will be able to answer.

I've been working on a project for a client in which I am making a bot to play an android game. The bot itself it being written mainly in bash shells, and communicates to the connected android device via adb commands to grab screen shots, and provide tap and swipe input. It works just fine with one device.

ADB over wifi is not an option, my bot grabs a screenshot every 3 seconds or less for image analysis, and transferring that many images over a network is just asking for trouble and packet loss.

My question is, how can I tell adb which device to use when I have multiple devices connected? For example, I want to eventually have 4 androids connected to 1 control computer that will be running 4 instances of the bot.

One idea I've thought of but haven't attempted yet is to just create 4 user accounts and somehow assign each device to that user account so that from within each user account, when adb is ran, it will only see the device assigned to it. Would this work, is there a better way?

Another idea is to run 4 virtual machines on the host computer and then pass through only 1 device to each virtual machine, effectively isolating each android device by itself to it's own virtual machine that could then be running the bot. (I don't think this is the best approach, even though the bot is very lightweight, I don't want to have each host machine requiring visualization on the cpu, not to mention the resource requirement for running 4 vm's)

Comment too long. Click here to view the full text.
Shit Mallerdale - Sun, 01 Feb 2015 15:12:51 EST ID:Y3ED2UTr No.33311 Ignore Report Quick Reply
It's just the -s flag, What I really need, is how to change the serial numbers on these things? I have a lot of tablets that are simply 12345678ABDCEFG so defining a device by the serial number wont work too well.

ok well, found this

"You can issue adb commands from a command line on your development machine or from a script. The usage is:

adb [-d|-e|-s <serialNumber>] <command>

If there's only one emulator running or only one device connected, the adb command is sent to that device by default. If multiple emulators are running and/or multiple devices are attached, you need to use the -d, -e, or -s option to specify the target device to which the command should be directed. "
Betsy Grandham - Thu, 05 Feb 2015 23:36:24 EST ID:rn5g8/0H No.33329 Ignore Report Quick Reply
Torrent the Android Hacker's Handbook. I would abstract all that away with a simple call to libusb and avoid the shell completely. http://sourceforge.net/projects/pyusb/

If for god knows what reasons it must absolutely be shell scripts then just use adb server port numbers http://developer.android.com/tools/help/adb.html or pipe adb directly to the usb port of your choice ignoring the adb daemon/server completely.

Modify user information in a database, AngularJS/Ruby on Rails by Doris Puzzlegold - Tue, 03 Feb 2015 15:25:17 EST ID:lFPL//lj No.33317 Ignore Report Reply Quick Reply
1422995117952.jpg -(32612 B, 600x463) Thumbnail displayed, click image for full size. 32612
So I'm interning at a software company, making my first app. We're using PhoneGap/the ionic framework for the front end, which uses AngularJS and HTML, and for our back end we're using Ruby on Rails.
I'm trying to write an "Edit Profile" page that gets info from the database (id, name, phone #, etc.), pulls it up in a text field, and lets you modify the text field, then when a button is clicked, posts that data back to the database per user ID that's selected (we don't have a log in yet so I'm manually setting the ID). I'm having a bunch of trouble with sending it back, though, because I'm not sure how to structure the $http.post in my controller. I'm still learning the syntax of $http in Angular, but I'm not sure how I should go about reading the user-inputted data in the text fields, into the scope variables in the controller and posting it to the database. Can anybody point me in the right direction?

is the pastebin. The name of the function that I'll be using to change the profile info is changeInfo. Thanks to anyone who answers!

Akami by Anon - Tue, 27 Jan 2015 21:26:13 EST ID:5M822B0h No.33275 Ignore Report Reply Quick Reply
1422411973932.png -(303237 B, 1280x800) Thumbnail displayed, click image for full size. 303237
This company along with MIT , Google, AOL, and Apple. oh yeah Adobe also. Are compromising my security constantly. I think a higher level of entities are behind the scenes of it all. I am a decent coder. with okay problem solving skills.Are they trying to destroy my life or just sending me a message? I have destroyed hardware. Tried multiple platforms and still they are not giving up. I have a mental health condition. This stress will kill me if it doesn't stop soon. I can return fire but they are highly skilled and have endless personal and professional development resources.
5 posts omitted. Click Reply to view.
Doris Finkinchack - Wed, 28 Jan 2015 22:56:11 EST ID:CaxHBeL+ No.33297 Ignore Report Quick Reply
what the fuck is this image meant to convey?
Cornelius Fenderpodge - Sun, 01 Feb 2015 16:52:43 EST ID:Ri27kjQr No.33312 Ignore Report Quick Reply
no script and request policy
Augustus Caggleway - Sun, 01 Feb 2015 18:12:32 EST ID:meuJrUYo No.33313 Ignore Report Quick Reply
Oh Look, it's the LoveShackOS guy
Nathaniel Povingdeck - Mon, 02 Feb 2015 23:41:12 EST ID:0fDyrctt No.33314 Ignore Report Quick Reply
You need different meds.
Martin Puppershit - Tue, 03 Feb 2015 12:03:46 EST ID:DN8UKyk5 No.33316 Ignore Report Quick Reply

Install gentoo.

kali linux by Eliza Lightdock - Wed, 25 Jun 2014 14:10:00 EST ID:fs9BcuOp No.31971 Ignore Report Reply Quick Reply
1403719800385.png -(89331 B, 1280x1024) Thumbnail displayed, click image for full size. 89331
trying to create a persistent usb but at boot it wont recognize any suggestions everything is aimed to correct position. had it working without persist also
"on a 64gb 3.0"
Jarvis Pittwill - Wed, 25 Jun 2014 20:37:29 EST ID:SVZjhRzL No.31975 Ignore Report Quick Reply
Try another USB, I have no idea I don't use Kali linux.
What I do know is USBs are generally big pieces of shit, poorly made and die frequently so just go buy another one for $10

I wouldn't trust persistence whatsoever, especially on a device with wear levelling (all USB/SDmicro/flash drives). Instead just create a LUKS container with cryptsetup, and put your evilware in there. Then back it up to bitbucket or github so when you boot you simply type 'git clone https://bitbucket/derp.git' and your container full of evil is ready to go.
Isabella Bassleworth - Mon, 30 Jun 2014 22:43:38 EST ID:ssOAU605 No.31993 Ignore Report Quick Reply
grab a bootable iso, use the dd command to drop iso onto a usb stick.

been like 5 years since I played with those =/ they're not that interesting and usb sticks don't have enough write cycles to do anything really interesting, use something like puppy linux that unpacks into a ram disk or it'll die fast.
Isabella Bassleworth - Mon, 30 Jun 2014 22:46:06 EST ID:ssOAU605 No.31994 Ignore Report Quick Reply
ooo putting grub on the stick and installing to it can work too; if you have a bootable partition and the motherboard is smart enough to pick it up.
Martin Puppershit - Tue, 03 Feb 2015 12:02:32 EST ID:DN8UKyk5 No.33315 Ignore Report Quick Reply

dd is THE way to image Kali onto USB, OP did you even read the documentation?

Also the latest batches of Kali comes with persistence and encrypted persistence (as if you needed both options).

Oh and note of myown, image it in 64k not 512k. The documentation says to go with 512 but 64 works better.

Sorry for bumping old thread I just found this via random and thought I'd help.

HTML Tables no good? by Walter Focklegold - Sun, 18 Jan 2015 19:58:43 EST ID:TZ2ht1Xk No.33207 Ignore Report Reply Quick Reply
1421629123367.gif -(26732 B, 493x382) Thumbnail displayed, click image for full size. 26732
Somewhere I read online that <table> is no longer good to use anymore? Why is that?

What has replaced it, and what are the advantages to using that replacement?
4 posts omitted. Click Reply to view.
Nell Bardbury - Fri, 23 Jan 2015 23:38:14 EST ID:TZ2ht1Xk No.33237 Ignore Report Quick Reply
Well personally I like to use tables for vertical linear web pages as it makes it easy for me to put the navigation links in a row at the top, some main content further down, etc.
What alternatives do I have in order to place things horizontally within the vertical webpage like that?
Shitting Sozzledog - Sat, 24 Jan 2015 02:13:37 EST ID:gvj5PvvD No.33238 Ignore Report Quick Reply
Use css and do something like below. Look into bootstrap if you want super easy mode.

<div class="row">
... Whatever stuff

<div class="row">
... More stuff
Cedric Lightstock - Sat, 24 Jan 2015 04:29:10 EST ID:zG9h2+mQ No.33239 Ignore Report Quick Reply
>Well personally I like to use tables for vertical linear web pages as it makes it easy for me to put the navigation links in a row at the top, some main content further down, etc.
Well, you shouldn't, because that isn't tabular data.
>What alternatives do I have in order to place things horizontally within the vertical webpage like that?
You didn't even look at my fiddle; Read it: http://jsfiddle.net/385q4s05/1/
Cyril Bamblefield - Sat, 24 Jan 2015 14:52:32 EST ID:L9XJNhgt No.33241 Ignore Report Quick Reply
if you have a bunch of data that makes sense as a table, then it's great.

The problems is some people would use it to lay out entire pages.

If you find yourself say nesting tables, you've probably fucked up.
Jarvis Nundlehick - Sun, 01 Feb 2015 14:24:31 EST ID:poiDEF2J No.33309 Ignore Report Quick Reply
Another thing: Screen readers (used by the blind) assume that tables hold tabular data.

From http://stackoverflow.com/questions/1760732/why-are-table-based-sites-bad-for-screen-reader-users ::
>Screen readers assume the content inside a table is tabular, and reads it as such. E.g. "row 1, column 1: (contents)". If you use tables to lay out your site, this won't necessarily make any sense. You are telling the end-client you have data with tabular significance, when you actually don't.
>By contrast, div have no meaning other than "section", so screen readers make no attempt to signify them. You can use divs to make arbitrary visual breaks in your layout without impacting the meaning of the markup.
>This is what we mean when we say "semantic" markup. Semantic means the markup accurately describes the meaning of the content inside of it - tables wrap tabular data, ULs wrap unordered lists, etc.

Also, screen readers are a good reason to remove cruft/crust/fluff from your webpage; If you don't remove that stuff, the screen reader will read *all* of it, which greatly annoys the (blind) user, because it's hard for them to skip it. (They can tell their screen reader to jump to the next tag, but they don't know how many more tags of cruft/crust/fluff they need to skip.)

Sync two spotify clients by Caroline Heblingfoot - Wed, 28 Jan 2015 16:05:38 EST ID:hM7tUB2y No.33288 Ignore Report Reply Quick Reply
1422479138802.jpg -(2999930 B, 5121x3392) Thumbnail displayed, click image for full size. 2999930
Hey guys
I'm trying to wrap my own head around what I'm trying to do:
But here is the scenario. Me and my friend are in separate places, each with our own spotify account.
So lets say we wanted to listen to some music together, without actually being in the same room.
So what I want to do is if I put some song on, the same song will play on her computer. If she changes the song, it will change on my end too. So basically the two clients would always be playing the same thing.

I thought I'd ask here instead of /tech/ cause I don't think a solution for this already exists, or maybe google-fu is just out of wack. And my programming is pretty rusty but I know there's a remote control API and some other stuff to control spotify.
So I'm wondering if the Spotify client actually sends some kind of signal I can capture, to get the current playback status, so I could run a server or something that we both connect to that would keep us in sync.

Just if any of you guys are familiar with the spotify APIs and stuff, if you could maybe show me where to start, or just tell me that my idea is utterly stupid if that's the case.

I know I could set up like a shoutcast or something, but I couldn't find a "nice" way to hook up that with spotify, without doing like a loopback recording interface thing, I tried that and it's kinda shitty and we can't both control it, and all my volume changes will change the volume on the radio and all that. Bleh.

The idea is to simulate the experience of being in the same room and like taking turns putting some songs on, just with two people over the internet. And if there are any pre-existing solutions that do something similar, I'd like to try those, this kinda seems like a thing that someone would have at least thought about before.

Thanks for reading. I'll take any advice you can give me.
Doris Penkinpug - Wed, 28 Jan 2015 20:29:11 EST ID:m5umRiNP No.33289 Ignore Report Quick Reply
I can't help with spotify but using some rdp or vnc program (e.g. teamviewer) would let you do this by mirroring the single spotify app.
Augustus Sumblewell - Wed, 28 Jan 2015 20:41:58 EST ID:VuYCXl/p No.33290 Ignore Report Quick Reply
Yeah, I guess that could work :/ Maybe I'm just overthinking this, I could just run it in a virtual machine, that way be could both have independent volume control.
Whitey Duckbury - Fri, 30 Jan 2015 22:38:14 EST ID:CaxHBeL+ No.33306 Ignore Report Quick Reply
Email the spotify devs, they are hackers at heart and might help you out.
Albert Chiffingtetch - Sat, 31 Jan 2015 23:30:25 EST ID:m5umRiNP No.33307 Ignore Report Quick Reply
𝐡𝐚𝐜𝐤 their emails lol
Charlotte Monderlork - Sun, 01 Feb 2015 13:27:14 EST ID:Ky+8GJE7 No.33308 Ignore Report Quick Reply
Sounds interesting, though complicated. If there is a remote API you'd probably just need each others' private keys/passwords so whatever you make can control the other's immediately.

If you can get the song info as well and be able to feed that into the API, you could maybe write an external script that loops and checks both songs being played by each other, if one is out of synch, revert to the song/time of the user with the last added song. Also realize you'd need the time as well, though synching that might cause some stutter problems, so you might only wanna do song syncs on song changes.

Lot more variables I'm sure but sounds possible if there's an indepth API.

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