- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,509 for convert (0.25 sec)
-
src/test/java/org/codelibs/fess/helper/DuplicateHostHelperTest.java
assertEquals(result, duplicateHostHelper.convert(url)); url = "http://foo.com/"; result = "http://www.foo.com/"; assertEquals(result, duplicateHostHelper.convert(url)); url = "http://foo.com:8080/"; result = "http://www.foo.com:8080/"; assertEquals(result, duplicateHostHelper.convert(url)); url = "http://mail.bar.com/";
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3.3K bytes - Viewed (0) -
src/main/assemblies/files/generate-thumbnail
if [[ ! -f ${tmp_png_file} ]] ; then echo "pdftoppm does not work." exit 1 fi convert -thumbnail ${image_size} ${tmp_png_file} "${output_file}" rm -f ${tmp_png_prefix}*png elif [[ x"${cmd_type}" = "ximage" ]] ; then check_command convert target_file=$(echo "$url" | sed -e "s#^file:/*#/#g") convert -thumbnail ${image_size} "${target_file}" "${output_file}" elif [[ x"${cmd_type}" = "x" ]] ; then
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Mon Jun 12 13:13:28 UTC 2023 - 2.5K bytes - Viewed (0) -
callbacks/helper_test.go
input map[string]interface{} expect clause.Values }{ { name: "Test convert string value", input: map[string]interface{}{ "name": "my name", }, expect: clause.Values{ Columns: []clause.Column{{Name: "name"}}, Values: [][]interface{}{{"my name"}}, }, }, { name: "Test convert int value", input: map[string]interface{}{ "age": 18, }, expect: clause.Values{
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Tue Mar 05 02:22:57 UTC 2024 - 3.4K bytes - Viewed (0) -
docs/en/docs/advanced/response-directly.md
For example, you cannot put a Pydantic model in a `JSONResponse` without first converting it to a `dict` with all the data types (like `datetime`, `UUID`, etc) converted to JSON-compatible types. For those cases, you can use the `jsonable_encoder` to convert your data before passing it to a response: ```Python hl_lines="6-7 21-22" {!../../docs_src/response_directly/tutorial001.py!} ``` /// note | "Technical Details"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3K bytes - Viewed (0) -
docs/en/docs/tutorial/encoder.md
# JSON Compatible Encoder There are some cases where you might need to convert a data type (like a Pydantic model) to something compatible with JSON (like a `dict`, `list`, etc). For example, if you need to store it in a database. For that, **FastAPI** provides a `jsonable_encoder()` function. ## Using the `jsonable_encoder` Let's imagine that you have a database `fake_db` that only receives JSON compatible data.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.8K bytes - Viewed (0) -
cmd/postpolicyform.go
policyCondStartsWith = "starts-with" policyCondContentLength = "content-length-range" ) // toString - Safely convert interface to string without causing panic. func toString(val interface{}) string { switch v := val.(type) { case string: return v default: return "" } } // toLowerString - safely convert interface to lower string func toLowerString(val interface{}) string {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 12.4K bytes - Viewed (0) -
schema/naming.go
if ns.SingularTable { return ns.toSchemaName(table) } return ns.toSchemaName(inflection.Singular(table)) } // ColumnName convert string to column name func (ns NamingStrategy) ColumnName(table, column string) string { return ns.toDBName(column) } // JoinTableName convert string to join table name func (ns NamingStrategy) JoinTableName(str string) string { if !ns.NoLowerCase && strings.ToLower(str) == str {
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Wed Jun 12 03:46:59 UTC 2024 - 5.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/DuplicateHostHelper.java
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 2.3K bytes - Viewed (0) -
docs/en/docs/advanced/response-change-status-code.md
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.5K bytes - Viewed (0) -
internal/s3select/sql/value.go
a.setInt(iA) } else if fA, ok := a.bytesToFloat(); ok { a.setFloat(fA) } else { return fmt.Errorf("Could not convert %s to a number", a.String()) } case bool: if bA, ok := a.bytesToBool(); ok { a.setBool(bA) } else { return fmt.Errorf("Could not convert %s to a boolean", a.String()) } default: return errCmpMismatchedTypes } return nil
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Feb 25 20:31:19 UTC 2022 - 20.2K bytes - Viewed (0)