Provided that you have a given number big rice bags (5 kilos each), and then display the number of bags to be used for a certain kilos of rice as an input.
public class App {
public static void main(String[] args) throws Exception {
<?xml version="1.0" encoding="utf-8"?> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android" | |
android:shape="rectangle" > | |
<!-- fill/color --> | |
<solid | |
android:color="#ff0000"/> | |
<!-- Control the width and height of the shape --> | |
<size |
<?php | |
// references | |
// https://stackoverflow.com/questions/13274691/coverting-hex-to-image-in-php | |
// https://stackoverflow.com/questions/45711484/how-to-convert-image-stored-in-db-as-hex-into-visible-image | |
$hexString = '0xffd8ffe000104a46494600010100000100010000ffe103224578696600004d4d002a00000008000c010e0002000000200000009e010f000200000012000000be011000020000000b000000d0011200030000000100010000011a000500000001000000dc011b000500000001000000e40128000300000001000200000131000200000020000000ec01320002000000140000010c013b00020000000c00000120829800020000000c0000012c87690004000000010000013800000000557273696e69612063616c656e64756c69666f6c6961203230303730313939004e494b4f4e20434f52504f524154494f4e004e494b4f4e20443730300000002dc6c000002710002dc6c00000271041646f62652050686f746f73686f702043533620284d6163696e746f73682900323031373a31303a30392031373a32353a313500486f77617264205269636500486f776172642052696365000020829a000500000001000002be829d000500000001000002c6882200030000000100030000882700030000000100c800009000000700000004 |
# concatenate tuple | |
data = (1, 2, 3) | |
result = ''.join([str(item) for item in data]) | |
print(result) |