You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _pages/2019/spring/psets/3/resize/less/resize.adoc
+9-25
Original file line number
Diff line number
Diff line change
@@ -182,36 +182,20 @@ If you happen to use `malloc`, be sure to use `free` so as not to leak memory. T
182
182
183
183
== Testing
184
184
185
-
If you'd like to peek at, e.g., ``large.bmp``'s headers (in a more user-friendly way than `xxd` allows), you may use a program called `peek` in the staff solution sandbox. Perhaps better yet, if you'd like to compare your outfile's headers against those from the <<staffs-solution,staff's solution>>, you can copy the files from the link:https://sandbox.cs50.io/aa2c48ff-2520-408a-9951-2b9da0934399[the staff solution sandbox] by following these steps. Within **the sandbox**, you could run:
185
+
If you'd like to peek at, e.g., ``large.bmp``'s headers (in a more user-friendly way than `xxd` allows), you may execute the below.
to produce a file named `staff.zip`. Using the file browser in the sandbox, you could download it to your computer.
193
-
194
-
Back in the IDE, highlight `~/pset3/resize` in the file browser, then choose **Upload Local Files** from the File menu, select the `staff.zip` file on your computer, and click **Open** to upload it to your `~/pset3/resize` folder. Click **Close** in the **Upload Files** dialog box.
195
-
196
-
Finally, in your IDE terminal, run this command to unpack the `staff.zip` file:
197
-
198
-
[source,bash]
199
-
----
200
-
unzip ~/pset3/resize/staff.zip -d ~/pset3/resize
201
-
----
202
-
203
-
Then, when connected to your `~/pset3/resize/less` directory in the terminal, you can run the staff's `resize` solution like this:
204
-
205
-
[source,bash]
187
+
[source]
206
188
----
207
-
../staff/resize 4 small.bmp staff.bmp
189
+
~cs50/2019/spring/pset3/peek large.bmp
208
190
----
209
191
210
-
And you can use the peek utility like this:
192
+
Better yet, if you'd like to compare your outfile's headers against those from the <<staffs-solution,staff's solution>>, you might want to execute commands like the below. (Think about what each is doing.)
Copy file name to clipboardExpand all lines: _pages/2019/spring/psets/3/resize/more/resize.adoc
+9-25
Original file line number
Diff line number
Diff line change
@@ -189,36 +189,20 @@ If you happen to use `malloc`, be sure to use `free` so as not to leak memory. T
189
189
190
190
== Testing
191
191
192
-
If you'd like to peek at, e.g., ``large.bmp``'s headers (in a more user-friendly way than `xxd` allows), you may use a program called `peek` in the staff solution sandbox. Perhaps better yet, if you'd like to compare your outfile's headers against those from the <<staffs-solution,staff's solution>>, you can copy the files from the link:https://sandbox.cs50.io/aa2c48ff-2520-408a-9951-2b9da0934399[the staff solution sandbox] by following these steps. Within **the sandbox**, you could run:
192
+
If you'd like to peek at, e.g., ``large.bmp``'s headers (in a more user-friendly way than `xxd` allows), you may execute the below.
to produce a file named `staff.zip`. Using the file browser in the sandbox, you could download it to your computer.
200
-
201
-
Back in the IDE, highlight `~/pset3/resize` in the file browser, then choose **Upload Local Files** from the File menu, select the `staff.zip` file on your computer, and click **Open** to upload it to your `~/pset3/resize` folder. Click **Close** in the **Upload Files** dialog box.
202
-
203
-
Finally, in your IDE terminal, run this command to unpack the `staff.zip` file:
204
-
205
-
[source,bash]
206
-
----
207
-
unzip ~/pset3/resize/staff.zip -d ~/pset3/resize
208
-
----
209
-
210
-
Then, when connected to your `~/pset3/resize/more` directory in the terminal, you can run the staff's `resize` solution like this:
211
-
212
-
[source,bash]
194
+
[source]
213
195
----
214
-
../staff/resize 4 small.bmp staff.bmp
196
+
~cs50/2019/spring/hacker3/peek large.bmp
215
197
----
216
198
217
-
And you can use the peek utility like this:
199
+
Better yet, if you'd like to compare your outfile's headers against those from the <<staffs-solution,staff's solution>>, you might want to execute commands like the below. (Think about what each is doing.)
0 commit comments