« first day (739 days earlier)      last day (3576 days later) » 

16:02
There's a story there, @Phrancis .....
(meant to post in the other room, but go ahead)
in Game Development, Apr 12 '14 at 3:50, by rolfl
room topic changed to Game Development: Game development and other polite discussion. Please don't star trivial messages. [game-design] [game-industry]
Spot any names you recognize....?
Certainly do!
> Please don't star trivial messages.
Huh? What's that mean?
This is what it was before.... (yeah, the star was not me....)
in Game Development, Dec 5 '13 at 22:16, by Noctrine
room topic changed to Game Development: Game development discussion and other things. Please don't star trivial messages. Stop having fun guys. [game-design] [game-industry]
16:05
Ohhhhhhh. It looks like that thing they call sarcasm!
Actually, the don't star things is serious, I believe....
I think the interview went well. ---back to work---BTW.Work with me!
They called you.... patience rewarded.
@rolfl Emily Who?
16:11
Is there a problem with the code you want solved, or do you want a CodeReview? — jxh 1 min ago
Ah.
Have you tested your code? That can help you better to figure out if it is logically correct or not than Code Review can. — Simon André Forsberg 29 secs ago
0
Q: Javascript Automatic Class Structuring Code

scuzzlebuzzleThis is designed to make it easy to structure a large javascript project into its own independent classes/modules, then make those classes have easy access to their parent classes, all while keeping each class in its own local scope and all non-exported variables private. It currently allows you ...

@rolfl my concern is that I expressed this concern and NO ONE addressed it or explained what the special flag or whatever is. Remeber, Xcode is just an IDE... It compiles with GNU++ or whatever... And it wouldn't compile for you either
@rolfl OP is a stinking liar. I should have been more critical the second time around.
16:24
OK... that's some clarification ;-)
@nhgrif - I am not doubting your discoveries, or mine....
what I don't want, is for chat to become a place where people gang up to close vote on questionable situations.
Do you still need a technical explanation of something?
Nope
Okay, sure... But if we don't close quickly enough, we run into problem of yesterday that you opened meta about
@nhgrif Link?
It's easier to reopen question than it is to deal with a pile of answers that prevent question from being fixed because of invalidating answers
And I asked people to take a look and see if they could compile it.
16:26
Or timestamp (roughly)
0
Q: Project Euler #1 in Haskell

Rodya_Looking for feedback/critiques/alternatives to my solution for the 1st Project Euler question: {-| If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3,5,6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. -} import Da...

@Mast same question we've been talking about all day
Yesterday?
That was today
And I'm glad it's finally closed.
16:28
10
Q: How to resolve 3 numbers - that's the question

rolflChecking if 3 numbers are an arithmetic progression The above question had a description, and internal test cases which were suggestive of a problem that is not what the question was actually trying to solve. The description implied that: values had to be increasing (or, optionally, equal). ...

Good meta question.
@nhgrif - I need you to try to understand things from my perspective.
I don't have the luxury of voting to close.
Somebody scored 21 with an answer on a question that bad? Wow.
I am also not a domain expert, and I am not particularly interested in going against another mod who knows a whole bunch more about the domain, than I do, and also against a number of other community members (who are not in chat) that do know more.
For you to keep pushing me, along with other non-expert-c++ people to close a question that is not your stated area of expertise, would be... messy, if wrong.
@rolfl How should such a case be prevented next time in your opinion?
16:33
0
Q: Suggestions for PHP that formats html for use in a locally hosted iframe

zacbracI'd like to get advice on this class I've written, it formats html for use in a locally hosted iframe so that you can manipulate the content in the iframe freely, without running into cross domain issues. It uses Goutte to retrieve the html. I'd like to improve the code, whether it's to fit a cer...

TS for that last statement
While I agree that it would be best to close things early, to me, "early" means before people jump in with answers that are inappropriate.
I cannot possibly claim that the answers on that question were inappropriate.
I have to trust them. If I don't we have nothing.
You would want me to extend the same for you in the iOS, ObjC, Swift domain too.
I agree that these answers are not inappropriate. The ones to the 3 numbers question was far worse. In cases like this, I think it is better that the community closes the question than a mod doing it.
There's a saying that gets thrown around in the mod circles... the things other mods say to you when you first get in to the "mod rooms".... something like: "Mods don't vote, they decide".
Can you decide for one of my answers to be awarded Great Answer?
16:44
Hey, both our top answers are +57/
Weekend!!!
Really?
@skiwi WWWWWednesday. Not Weekend.
oh wait, you also have a red day tomorrow?
Tomorrow is Ascension Day, and on Friday nobody on university bothers to come
you're right. Sweden has the same.
16:47
On Friday we're literally free because it's between Thursday (free) and weekend (free)
Not that I celebrate Ascension Day, but I do celebrate days off ;)
I still have to work Friday
@skiwi I'm a Christian and I don't even know how to celebrate Ascension Day...
@SimonAndréForsberg Like a David Copperfield thing, you clap your hands. ;-)
16:58
@Mast How much expertise do you need?
@200_success To flash my current embedded platform, I basically input a bunch of binaries, a bootloader, an ext4 file and equally named .hddimg file.
I need to allocate more space in a certain part of the ext4 and less in the rest of the parts.
No clue how though. I can mount the file with success, but I can't modify the properties.
-1
Q: Python brickbreaker game

Kai MalowanyThis is my final project for a OOP class, I'm trying to mix the physics mode in python with classes, and I cannot get to collision between the ball and the brick to register. I've tried making the ball a class as well but then I cant get the physics mode functions to work for the ball. from Grap...

@200_success Can I specify a file with that?
17:02
read: target a file
@Mat'sMug @SimonAndréForsberg ^^
Target the image file? Or a file within the filesystem?
@200_success Either the .ext4 file or the .hddimg, whichever is necessary. I can no longer target the filesystem when it's flashed, so all modifications need to be done while it's still as files.
I don't really understand what you are trying to accomplish, so perhaps you should ask a proper question on Unix & Linux.
@200_success I did on AskUbuntu, but I'm not sure that was the right place. It is my development OS though.
You know what a .ext4 file is?
17:06
To me, it seems that you (Mast) have a problem for which the circumstances are very specifica, and require more than just ext4 expertise.
ext4 is a filesystem, not a file.
I presume the file is an image of such a filesystem.
@RubberDuck Awesome!!
The filesystem can be saved as a file, which is kind of an image
@SimonAndréForsberg LOL, KTHXBYE
2
I'm not sure exactly how it should be called, but it can be mounted as a .ext4 filesystem
1
Q: Modify size .ext4 file

MastI'm currently trying to modify the partition table for an embedded platform. One of the files flashed towards the platform is an .ext4 file. I can mount the file, but I can't increase it's size. GParted can't open .ext4 files or access them when mounted. I can change the data inside the file. Ho...

17:09
@Mast - there's a disconnect in your question and comments there.
is your image a disk image or a filesystem image?
To be honest, I have no idea. It's part of a Yocto OS I downloaded from a big company with their product
I know I can mount it, so it must be an image.
It has an equally named .hddimg, so I assume it's a disk image.
But .ext4 is a filesystem.
What are you really trying to accomplish? (Ignore all this stuff about what steps you want to take to get there, for now.)
3
When I flash the current situation, my rootfs is only 400-ish MB and my home folder has 2.2GB reserved. I want to either merge a couple of the partitions or swap space between them.
So I basically want to repartition a file
kpartx sounds like the right answer, or at least a key part of the whole solution.
What is this "filesize header" that you are talking about?
I assume the file is split in the actual filesystem and a list of information how big what partition is, where it should be mounted and what name it has
Which would be a header, I think
kpartx shows me the boot, but all of those files (except for one) are not readable
17:16
"I assume the file is split…" ← Which file are you referring to?
The .ext4 file
0
Q: jQuery want to use removeClass and addClass together, cannot use siblings()

JessicaI have a map with a key. Each key item corresponds with one or more points on the map. A key item can correspond with multiple points on the map. The key item and corresponding points share a class. For example: locpont_01 When you click on either the key item or any of the corresponding points, ...

Does that make sense?
And what do you mean by "actual filesystem"?
The files already in it.
17:28
@rolfl even though you don't have the ability to simply vote, if there are already 4 votes... But that point is moot anyway, I was looking for anyone to either vote or explain why I was wrong.
The OS
I'm not making any sense, am I?
No, I think you have some confused terminology.
You want me to start over?
31 mins ago, by Mast
@200_success To flash my current embedded platform, I basically input a bunch of binaries, a bootloader, an ext4 file and equally named .hddimg file.
So you are starting with what inputs?
What do you mean by "a bunch of binaries"?
What is the relationship between the "ext4 file" and the "equally named .hddimg file"?
They have the same name, that's the relationship I think
I haven't been able to confirm the purpose of the .hddimg yet
17:33
Are they approximately the same size?
But with such an extension, it's probably important
Where did you get these files from?
No, the .ext4 is 530-ish, the .hddimg is 6MB
530 bytes?
MB
The whole bunch is delivered as an image, but the image is actually a zip
Inside the zip are some binaries, a boot folder, the .ext4 and the .hddimg
I got them from the company who produced the board. They made a custom version of Yocto to flash towards the device over ttyUSB
17:37
The RAM-bone is connect to the CPU-bone...
If you run file blah.hddimg, what does it say?
.hddimg: DOS/MBR boot sector
Then I'm guessing that the .hddimg file is the partition table. Can you run parted on it?
tune2fs .ext4 -J size=2048 states The filesystem already has a journal. Which is obvious, I just want to view the current settings and edit them.
No, tune2fs is irrelevant. I misunderstood your original question at the time.
17:47
parted accepts the .hddimg as input
print all yells about an unrecognized label though
If you give the p command within parted, what does it say?
Oh, then that's not it.
Actually, it might be
"Disklabel" is jargon for "partition table".
Number Start End Size File system Name Flags
1 1049kB 106MB 105MB fat32 EFI system partition boot, esp
2 106MB 1050MB 944MB ntfs Basic data partition hidden, diag
3 1050MB 1184MB 134MB Microsoft reserved partition msftres
4 1184MB 281GB 280GB ntfs Basic data partition msftdata
8 281GB 301GB 20,0GB
5 301GB 681GB 380GB ntfs Basic data partition msftdata
OK, so it worked.
17:49
Regardless of the disklabel, it mentions the partitions quite well
Although those values can't be right...
NTFS and ext4? Weird.
I think it notes my entire laptop
Which is a dualboot
Whoa, you're looking at your laptop's partition table, not the .hddimg.
I targeted the hddimg though...
How did you invoke parted?
17:51
sudo parted blah.hddimg
You shouldn't need sudo, assuming that blah.hddimg is owned and writable by yourself.
Still, I wonder why it's not looking at your blah.hddimg.
It's looking at it, but not exclusively
According to print:
Disk blah.hddimg: 6062kB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
Which seems totally fine
Still an unrecognized disk label, but hey, if it can read the data...
However, running parted on the ext4 is more interesting:
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number Start End Size File system Flags
1 0,00B 537MB 537MB ext4
Since that has actual size
This is for an embedded device? Maybe they are using a non-standard partition table?
Perhaps, but wouldn't that require a different journal system as well?
Resize fails for some reason:
Error: The location 1536MB is outside of the device
Why can't it just increase the file size?
Just because it's ext4, does not mean it has a journal.
In the askubuntu question, the answer suggested you >> to the file from /dev/zero.
18:00
I did that. It increased the file size but that wasn't notable when mounting. Perhaps dd >> and then partitioning would do the trick. The mentioned resize in the answer didn't work though.
Are these files downloadable somewhere?
Yea, you want a link?
I guess so.
Packed 150MB, unpacked 600-ish
downloadmirror.intel.com/24910/eng/edison-image-ww18-15.zip
edison-image-edison.hddimg looks like SYSLINUX code. You can see from the first few bytes.
18:07
I couldn't make sens of the hexdump. It also states FAT12, but that's not system I recognize
So, my hardware runs an emulated floppy disk. This keeps getting better.
I'm not convinced that they are using any partition table at all.
Or, at least, what I mean is that the partition table is not managed by flashing an image.
Might very well be.
See the flashall.sh script.
In particular, see the echo "Rebooting to apply partition changes" line.
Could this help?
According to the flashall.sh, the .ext4 is the rootfs partition. But I need to view the layer above that I guess, including all partitions.
Right. And that partition table is not given to you as a disk dump. It's being created through some dev tool commands.
18:15
@200_success I could e-mail that guy, but I'm not sure if he has what I'm looking for. If his script basically does the same as flashall.sh for instance...
Seems like it, yes.
0
Q: Dragon Slayer game in JavaScript

l30n1d45I am in the process of completing the js course on code academy and i've just finished building the dragon slayer game. Here is the code: var slaying = true; var youHit = Math.floor(Math.random() * 2); var damageThisRound = Math.floor(Math.random()*5 + 1) var totalDamage = 0; whi...

If you need to ask a question, I think Reverse Engineering might be more appropriate than Unix & Linux.
That may be a good idea.
I'll see if I can find a picture of what the actual partitioning looks like by default.
I don't have the hardware with me currently.
Something like:
18:31
0
Q: Finding all the subsets in an Array of Integers that Sum to a Given Target

AnirudhProblem Statement: Given an Array if ints, Find out all the subsets in the Array that sum to a given target value. Example if the input Array is {1, 3, 2, 5, 4, 9} with target as 9 The resulting subsets are 135 324 9 54 Below is my implementation in Java. Please free to review in ...

1
Q: Distance between two n-dimensional points (NASM)

StepTNTI just finished writing a function that computes the distance between two n-dimensional points. The original one was written in C and it's basically a translation of this formula: \$\text{dist}(x,y)=\sqrt{\sum_{i^1}^d{(x_i-y_i)^2}}\$ Here's the C code for completeness sake: void distanceC(flo...

When you've written a good answer for a question, and then the question is deleted >:(
18:47
^^^ Interesting you'd say that, when I just did that now...
Dragon Slayer game?
yup
hey guys btw
Sorry, I guess I was the one that caused him to delete it
Hey @janos :)
no probs
0
Q: Custom Session Pool

joshWe use a student information system called Colleague that is developed by Ellucian. As far as I can tell, the system does not use any sort of session pool so rapidly opening and closing connections to the database is both expensive/slow and can use up a lot of resources on the server side. In r...

19:02
In this python code I would like to debug server.py's do_GET() method, How do I debug it using IDLE tool?
@overexchange That looks like a question for:
I've never used IDLE for debugging, so I wouldn't know. Print statements work fairly well.
I'm currently developing a NodeJS server which is debugged with console.log()
19:26
0
Q: Different methods of API that use similar Services

Daniela Marques de MoraisI have three methods in API running similar code snippets. For this reuse the code inserted a switch-case according to the API method. It's good practice that? I mean, this isn't a high coupling and low cohesion? There is another better way? API @ApiOperation(value = "Gerar permalinks de todos...

Non-English question. I'd review it if I could read it...
whatever complete bullshit. i'm done with stack exchange — scuzzlebuzzle 12 mins ago
Doesn't seem to differ much from what I'm currently building.
@Mast You don't speak Brazilian Portugese?
@SimonAndréForsberg No.
You do?
19:36
A little little bit, actually yes.
It helps to have an online game where 90% of the players are from Brazil...
and Portugese is a bit similar to Spanish, which is a bit similar to French, which I do understand.
And similar to Italian.
@SimonAndréForsberg I did not know you knew French!
@Phrancis I've studied it for 5 years in school (10 years ago, erhm....) and I've been to France... ummm.... 15 times?
0
Q: taking advantage of the falsey and innefective "" empty string PHP, good form?

Brandon SwansonThe following code snippets are academic, I was required to make an PHP generated HTML interface for a MYSQL database of a movie rental store, and requirement was filtering the displayed movies by category. The approach for having the filter persist across all form actions (without using a sess...

19:42
Aren't you from Belgium? Isn't Belgium right next to France?
Sweden != Belgium
Ah, but Sweden is also right next to France.
@SimonAndréForsberg Which is why I prefer American servers over European, they all speak the same language
@nhgrif No.
@nhgrif not really :)
@SimonAndréForsberg TS!
19:43
@SimonAndréForsberg Oh nice!
It may not border, but it's close.
@Mast I like different languages.
@nhgrif No.
From south to north:
I mean, Sweden is closer to France than I am to my nation's capital.
France, Belgium, Netherlands, bunch of sea water, Sweden
2
19:45
Oh wait... For some reason I was thinking Switzerland.
Okay, you are right.
And I apologize for that geographic failure.
@nhgrif ¤"!/¤"(!)=( 3 54@€£€@£$£{€{[{[€
SWEDEN != SWITZERLAND
5
you're not the first one to have mixed them up
@SimonAndréForsberg are you an expert of North American geography?
not really, but please, try me :)
I am not an expert of any geography.
19:47
I am actually pretty good at geography... This was a brainfart.
I hope so
At least you know Europe's not a country (right?)
Yes
I have played enough CK2 and EUIV to be pretty decent at European geopolitical stuff...
Sweden is the bottom half, Norway top half, Finland the eastern part... Denmark the peninsula north of Germany, etc.
Finnish flag blue & yellow, right?
Err, Swedish flag
bottom half and top half?
the Swedish is blue and yellow, yes.
19:51
Ah found it!
Yeah, of Scandinavia
Their border runs down that mountain range, right?
there is a special place in nerd hell for people who repost XKCD but *don't* put in the tooltip.
@nhgrif I guess you could say that, yes. Norway's to the west of the mountains, Sweden's to the east.

« first day (739 days earlier)      last day (3576 days later) »