Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

metadata

PHP extract GPS EXIF data

April 10, 2023 by Tarik

This is my modified version. The other ones didn’t work for me. It will give you the decimal versions of the GPS coordinates. The code to process the EXIF data: $exif = exif_read_data($filename); $lon = getGps($exif[“GPSLongitude”], $exif[‘GPSLongitudeRef’]); $lat = getGps($exif[“GPSLatitude”], $exif[‘GPSLatitudeRef’]); var_dump($lat, $lon); Prints out in this format: float(-33.8751666667) float(151.207166667) Here are the functions: function … Read more

Categories php Tags exif, gps, metadata, php Leave a comment

Sql Query to list all views in an SQL Server 2005 database

March 28, 2023 by Tarik

To finish the set off (with what has already been suggested): SELECT * FROM sys.views This gives extra properties on each view, not available from sys.objects (which contains properties common to all types of object) or INFORMATION_SCHEMA.VIEWS. Though INFORMATION_SCHEMA approach does provide the view definition out-of-the-box.

Categories sql Tags metadata, sql, sql-server Leave a comment

Select data from “show tables” MySQL query

March 26, 2023 by Tarik

I think you want SELECT * FROM INFORMATION_SCHEMA.TABLES See http://dev.mysql.com/doc/refman/5.0/en/tables-table.html

Categories mysql Tags metadata, mysql, sql Leave a comment

Symfony Make:Migration : The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue

March 24, 2023 by Tarik

Try changing the DATABASE_URL in .env from DATABASE_URL=mysql://root:@127.0.0.1:3306/testtest?serverVersion=10.4.11 to DATABASE_URL=mysql://root:@127.0.0.1:3306/testtest?serverVersion=mariadb-10.4.11 Symfony documentation suggest specifying the version number but not the database type “There are more options in config/packages/doctrine.yaml that you can configure, including your server_version (e.g. 5.7 if you’re using MySQL 5.7), which may affect how Doctrine functions.” https://symfony.com/doc/current/doctrine.html Original Answer: https://github.com/doctrine/DoctrineMigrationsBundle/issues/337#issuecomment-645390496 For MariaDB you … Read more

Categories php Tags error-handling, metadata, php, symfony Leave a comment

Retrieving Comments from a PostgreSQL DB

March 19, 2023 by Tarik

select c.table_schema, c.table_name, c.column_name, pgd.description from pg_catalog.pg_statio_all_tables as st inner join pg_catalog.pg_description pgd on ( pgd.objoid = st.relid ) inner join information_schema.columns c on ( pgd.objsubid = c.ordinal_position and c.table_schema = st.schemaname and c.table_name = st.relname );

Categories postgresql Tags metadata, postgresql Leave a comment

Find dependent objects for a table or view

March 6, 2023 by Tarik

The suggested solution didn’t work for me with postgresql 9.1.4 this worked: SELECT dependent_ns.nspname as dependent_schema , dependent_view.relname as dependent_view , source_ns.nspname as source_schema , source_table.relname as source_table , pg_attribute.attname as column_name FROM pg_depend JOIN pg_rewrite ON pg_depend.objid = pg_rewrite.oid JOIN pg_class as dependent_view ON pg_rewrite.ev_class = dependent_view.oid JOIN pg_class as source_table ON pg_depend.refobjid = … Read more

Categories postgresql Tags metadata, postgresql Leave a comment

Problem reading JPEG Metadata (Orientation)

March 1, 2023 by Tarik

Here is a snippet addressing the 8 orientation values. First a few notes: The EXIF id 0x0112 is for Orientation. This is a helpful EXIF id reference http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/EXIF.html 0x0112 is the hex equivalent of 274. The data type of a PropertyItem.Id is an int, meaning 274 is what is useful here. Additionally, 5029 likely was … Read more

Categories c# Tags c++, gdi+, image-processing, jpeg, metadata Leave a comment

How is HDF5 different from a folder with files?

February 28, 2023 by Tarik

As someone who developed a scientific project that went from using folders of files to HDF5, I think I can shed some light on the advantages of HDF5. When I began my project, I was operating on small test datasets, and producing small amounts of output, in the range of kilobytes. I began with the … Read more

Categories python Tags hdf5, metadata, persistence, python Leave a comment

What is metadata ? And what is the use of it in android

February 24, 2023 by Tarik

In Android, you can define meta-data information in your AndroidManifest.xml HERE IS THE DOCK LINK Very basic usage It is basically an additional option to store information that can be accessed through the entire project. In this case, <meta-data> is defined outside <activity> tag and inside <application> tag. Defining: <manifest> <application android:icon=”@drawable/icon” android:label=”@string/app_name”> <meta-data android:name=”my_test_metagadata” … Read more

Categories android Tags android, android-activity, android-manifest, metadata Leave a comment

SQL Server: Extract Table Meta-Data (description, fields and their data types)

February 15, 2023 by Tarik

To get the description data, you unfortunately have to use sysobjects/syscolumns to get the ids: SELECT u.name + ‘.’ + t.name AS [table], td.value AS [table_desc], c.name AS [column], cd.value AS [column_desc] FROM sysobjects t INNER JOIN sysusers u ON u.uid = t.uid LEFT OUTER JOIN sys.extended_properties td ON td.major_id = t.id AND td.minor_id = … Read more

Categories sql Tags metadata, sql, sql-server Leave a comment
Older posts
Newer posts
← Previous Page1 … Page4 Page5 Page6 Page7 Next →

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa