text:
Q: Connecting to MySQL via SSL using PHP I'm writing my first script that will connect via SSL to a MySQL database. I have been doing a lot of reading on the subject and have come across many options on how to set it up; some that apply to my situation and some that don't. Here is my situation:
The MySQL server is on the same machine as the script. My SSL Certificate is installed. Is it secure to simply connect to the database via a page that is using SSL with the following code?
Connecting via https://www.mysitehere.com/myscript.php

$con = mysql_connect("localhost", "username", "password", MYSQL_CLIENT_SSL);
if (!$con) {die('Could not connect: ' . mysql_error());}
mysql_select_db("my_database", $con);

A:
The MySQL server is on the same machine as the script. My SSL
  Certificate is installed. Is it secure to simply connect to the
  database via a page that is using SSL with the following code?

If you control the server(VPS) and PHP is on the same machine as MySQL(only need to allow connections from same machine) than it is pointless to use SSL for MySQL and will only result in overhead. You should just use firewall to protect MySQL like you should also do with memcached.
Otherwise you could read this section from MySQL to configure SSL. I think involves a little bit more than just $con = mysql_connect("localhost", "username", "password", MYSQL_CLIENT_SSL);
. For example you need to configure your SSL Certificate:
mysqld --ssl-ca=ca-cert.pem \
       --ssl-cert=server-cert.pem \
       --ssl-key=server-key.pem


text:
Q: how to change the distance between tick mark and tick label On similar lines as Is there an option to change the space/distance between tick labels and axes labels for plots? but I would like to reduce the distance between the tick mark and the tick label that appears below it. For eg:
In this figure, I would like to reduce the distance between -2 in the x axis and the tick mark corresponding to it
Edit:
Adding the code that generated this figure:
    cutoff = 0.52;
grp1 = {{-4.10855, 1}, {-3.18, 2}, {-2.97477, 3}, {-2.40408,
    4}, {-2.19854, 5}, {-1.77951, 6}, {-1.76863, 7}, {-1.75573,
    8}, {-1.71227, 9}, {-1.64262, 10}, {-1.48712, 11}, {-1.42243,
    12}, {-1.29815, 13}, {-1.18774, 14}, {-1.03156, 15}, {-0.978796,
    16}, {-0.971106, 17}, {-0.922292, 18}, {-0.862833,
    19}, {-0.807821, 20}, {-0.775937, 21}, {-0.750941,
    22}, {-0.737334, 23}, {-0.715059, 24}, {-0.712102,
    25}, {-0.693181, 26}, {-0.69129, 27}, {-0.674491, 28}, {-0.644356,
     29}, {-0.620938, 30}, {-0.59347, 31}, {-0.589228,
    32}, {-0.581852, 33}, {-0.580016, 34}, {-0.56826, 35}, {-0.566551,
     36}, {-0.561733, 37}, {-0.55583, 38}, {-0.551104,
    39}, {-0.549835, 40}, {-0.535232, 41}, {-0.53486, 42}, {-0.533395,
     43}, {-0.523652, 44}, {-0.520547, 45}, {-0.508359,
    46}, {-0.506626, 47}, {-0.491825, 48}, {-0.490019, 49}, {-0.477,
    50}, {-0.473228, 51}, {-0.470723, 52}, {-0.470415,
    53}, {-0.454857, 54}, {-0.454278, 55}, {-0.452099,
    56}, {-0.421126, 57}, {-0.41768, 58}, {-0.415444, 59}, {-0.402139,
     60}, {-0.387403, 61}, {-0.380952, 62}, {-0.374082,
    63}, {-0.373277, 64}, {-0.370055, 65}, {-0.364634,
    66}, {-0.361553, 67}, {-0.361208, 68}, {-0.360869, 69}, {-0.34248,
     70}, {-0.340748, 71}, {-0.33172, 72}, {-0.330729,
    73}, {-0.311965, 74}, {-0.310625, 75}, {-0.304104,
    76}, {-0.302831, 77}, {-0.302533, 78}, {-0.29397, 79}, {-0.291521,
     80}, {-0.289982, 81}, {-0.27621, 82}, {-0.264455,
    83}, {-0.256689, 84}, {-0.250929, 85}, {-0.246889,
    86}, {-0.228836, 87}, {-0.22671, 88}, {-0.202538, 89}, {-0.196612,
     90}, {-0.187845, 91}, {-0.187817, 92}, {-0.179211,
    93}, {-0.173247, 94}, {-0.165728, 95}, {-0.163806,
    96}, {-0.153261, 97}, {-0.132747, 98}, {-0.122831,
    99}, {-0.117507, 100}, {-0.113069, 101}, {-0.102309,
    102}, {-0.0976552, 103}, {-0.0951561, 104}, {-0.0894875,
    105}, {-0.0876338, 106}, {-0.087434, 107}, {-0.0845464,
    108}, {-0.0757364, 109}, {-0.0635816, 110}, {-0.0621387,
    111}, {-0.0580457, 112}, {-0.0558367, 113}, {-0.0529842,
    114}, {-0.0478612, 115}, {-0.0444608, 116}, {-0.0410887,
    117}, {-0.0398071, 118}, {-0.0322021, 119}, {-0.0200628,
    120}, {-0.0182955, 121}, {-0.0144614, 122}, {-0.0138035,
    123}, {-0.00716598, 124}, {0., 125}, {0.0103846, 126}, {0.0205011,
     127}, {0.0341349, 128}, {0.059813, 129}, {0.0954803,
    130}, {0.123192, 131}, {0.123591, 132}, {0.147797,
    133}, {0.166342, 134}, {0.16952, 135}, {0.186956, 136}, {0.206183,
     137}, {0.210853, 138}, {0.260639, 139}, {0.287231,
    140}, {0.30835, 141}, {0.314636, 142}, {0.329798, 143}, {0.334356,
     144}, {0.36056, 145}, {0.383386, 146}, {0.45576, 147}, {0.457104,
     148}, {0.46041, 149}, {0.482364, 150}};

grp2 = {{0.559846, 151}, {0.603893, 152}, {0.692402, 153}, {0.736425,
    154}, {0.742579, 155}, {0.750076, 156}, {0.879458,
    157}, {0.967285, 158}, {0.988934, 159}, {1.04353, 160}, {1.06206,
    161}, {1.12605, 162}, {1.13691, 163}, {1.14313, 164}, {1.22551,
    165}, {1.24425, 166}, {1.32567, 167}, {1.35547, 168}, {1.3873,
    169}, {1.46251, 170}, {1.48027, 171}, {1.48587, 172}, {1.50248,
    173}, {1.50557, 174}, {1.52349, 175}, {1.52676, 176}, {1.61266,
    177}, {1.6306, 178}, {1.71358, 179}, {1.73984, 180}, {1.79301,
    181}, {1.81201, 182}, {1.86031, 183}, {1.90378, 184}, {1.91104,
    185}, {1.932, 186}, {1.94978, 187}, {1.96444, 188}, {1.97321,
    189}, {1.98785, 190}, {1.99161, 191}, {2.02637, 192}, {2.04347,
    193}, {2.05299, 194}, {2.07511, 195}, {2.08866, 196}, {2.17186,
    197}, {2.19635, 198}, {2.2132, 199}, {2.22343, 200}, {2.22452,
    201}, {2.24434, 202}, {2.25782, 203}, {2.2627, 204}, {2.27745,
    205}, {2.46167, 206}, {2.48096, 207}, {2.54055, 208}, {2.64996,
    209}, {2.65934, 210}, {2.73535, 211}, {2.78724, 212}, {2.79484,
    213}, {2.79819, 214}, {2.88538, 215}, {2.89362, 216}, {2.96651,
    217}, {3.00729, 218}, {3.07063, 219}, {3.11961, 220}, {3.19508,
    221}, {3.2295, 222}, {3.23329, 223}, {3.27631, 224}, {3.3876,
    225}, {3.41121, 226}, {3.46174, 227}, {3.61129, 228}, {3.61579,
    229}, {3.64525, 230}, {3.77605, 231}, {3.91162, 232}, {3.91579,
    233}, {3.9266, 234}, {4.12641, 235}, {4.15509, 236}, {4.21151,
    237}, {4.25269, 238}, {4.41959, 239}, {4.4295, 240}, {4.45912,
    241}, {4.70492, 242}, {4.72227, 243}, {4.93772, 244}, {5.7519,
    245}, {5.92314, 246}, {6.20269, 247}, {6.23834, 248}, {7.70686,
    249}};

Show[ListPlot[{grp1, grp2}, Frame -> True,
  FrameLabel -> {Column[{Style["x", FontFamily -> "Courier"],
      Style["y", FontFamily -> "Courier"]}, Center], "(b) z", None,
    None, None}, AspectRatio -> 1.8,
  PlotStyle -> {{Blue, PointSize[0.01]}, {Red, PointSize[0.01]}},
  FrameTicks -> {{{-2, -2, {0, 0.03}}, {0, 0, {0, 0.03}}, {cutoff,
      "   " <> ToString[N[Round[cutoff, 10^-1]]], {0, 0.03}}, {2,
      2, {0, 0.03}}, {4, 4, {0, 0.03}}, {6, 6, {0, 0.03}}}, {{1,
      1, {0, 0.03}}, {50, 50, {0, 0.03}}, {100, 100, {0, 0.03}}, {150,
       150, {0, 0.03}}, {200, 200, {0, 0.03}}}, None, None},
  AxesOrigin -> {1, 0}, Axes -> False, ImageSize -> {211, 335},
  ImagePadding -> {{50, 0}, {50, 0}},
  PlotRange -> {{Automatic, Automatic}, {1, 250}}],
 Graphics[{Dashed, Black, Line[{{cutoff, 1}, {cutoff, 249}}]}]]

A: Assuming the ticks are FrameTicks, I'll generate an example plot with a frame and then replace its ticks using Framed with negative FrameMargins in the vertical directions:
p = Plot[Sin[x], {x, 0, 10}, Frame -> True];

With[{verticalShrink = 5},
 Show[p, FrameTicks -> (Map[# /. ({x_, xL_, dir___} :> {x,
          Framed[xL, FrameStyle -> None,
           FrameMargins -> {{Automatic,
              Automatic}, {-1, -1} verticalShrink}], dir}) &,
     FrameTicks /. First[AbsoluteOptions[p, FrameTicks]], {2}])]
 ]

Or with the frame labels similar to your example:
p = Plot[Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {"\*GridBox[{
{x},
{y}
}]", "\!\(\*FormBox[\(b(z)\),
TraditionalForm]\)"}];

With[{verticalShrink = 5},
 Show[p, FrameTicks -> (Map[# /. ({x_, xL_, dir___} :> {x,
          Framed[xL, FrameStyle -> None,
           FrameMargins -> {{Automatic,
              Automatic}, {-1, -1} verticalShrink}], dir}) &,
     FrameTicks /. First[AbsoluteOptions[p, FrameTicks]], {2}])]
 ]

Since you didn't provide the code that produced your example, I can only add that the specific tick style (pointing outward) can be created the usual way in the plot p, and then you use the With block on the desired plot p.
I used a quick-and dirty shrinking trick here: indiscriminately make the vertical frame margins negative in both top and bottom directions, so that I don't have to treat the vertical and horizontal ticks separately (the vertical alignment of the vertical ticks labels stays centered). But this (crude) top/bottom balanced approach means the shrinkage of vertical spacing is limited, and you can't make the tick labels touch the axis.
If you want to have more control, you'll need to make the replacement of tick labels by Framed tick labels act only on the horizontal bottom labels. The FrameMargins at top and bottom then should be chosen unequal. I can add that if it's necessary. See also this answer.

A: For me, the labels seem to stay close to the ticks, whatever length you give them:
Manipulate[
 ListLinePlot[Sort@RandomReal[300, {50}], Frame -> True,
  FrameTicks ->
   {
    Table[{x, ToString[x], {0, n}}, {x, 0, 50, 5}],
    Table[{x, ToString[x], {0, n}}, {x, 0, 300, 25}]
    }
  ],
 {n, -0.02, 0.02, 0.005}]

redpajama_set_name: RedPajamaStackExchange


text:
Q: Can I use child table primary key in parent table? I have a situation
My games table have child table teams
after, game completion I have to declare winnner
can I use like this?
my games table

id
game
winner

1
game 1
team_1_id

2
game 2
team_10_id

another work around in teams table

id
game_id
name
is_winner

1
1
team_1
true

2
1
team_2
false

is first option is valid?
I need suggestion, what is the good practice

A: First option is valid. You will just have a bi-directional relationship. It makes sense here. Each game will have one winner. And winner can be stored with game table. We avoid one more table.


text:
Q: Symfony 5 / Mercure > Private update. Fetch CORS I try to integrate Mercure to symfony 5 project. And there are two trouble.

*

*I try to send update to private, but it's not work, but if try to send to not private everything works.

Command that run mercure:
./bin/mercure --jwt-key='homesphere_secret_token' --addr='localhost:3000' --allow-anonymous --cors-allowed-origins='*'

.env file
MERCURE_PUBLISH_URL=http://localhost:3000/.well-known/mercure
MERCURE_JWT_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOlsiKiJdfX0.P0f5r123SLTru4DiE4X9q0EIoKahds-nI8jpo8uKKQQ
MERCURE_SECRET_KEY=homesphere_secret_token

Backend that gives url and jwt token
    $user = $this->getUser();

    $hubUrl = $this->getParameter('mercure.default_hub');
    $link = new Link('mercure', $hubUrl);

    $token = JWT::encode([
        'mercure' => [
            'publish' => [sprintf("/chat/%s", $user->getId())],
        ],
    ], $this->getParameter('mercure_secret_key'));

Update code
    $message = $serializer
        ->serialize(['message' => $message], 'json');
    $update = new Update(
        sprintf("/chat/%s", $user->getId()),
        $message,
        true // if false then work
    );
    $publisher($update);

Frontend part
const hub = new URL('http://localhost:3000/.well-known/mercure');
hub.searchParams.append('topic', '/chat/1');
const eventSource = new EventSourcePolyfill(hub.href, {
  'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOlsiXC9jaGF0XC8xIl19fQ.yg3DodPjaPzWVIOhKMo30xXzS3L4oPckbL9pcA4tMck'
});
eventSource.onmessage = event => {
  console.log(JSON.parse(event.data));
}

*When frontend receives message by update then next requests start rising CORS trouble
image
could anyone help me with these, please?

A: Try with --cors-allowed-origins='http://localhost:8000'


text:
Q: Derivative of matrix logarithm with respect to matrix I saw in this post that
$\frac{d}{dt}\text{logm}(Z(t)) = \frac{dZ(t)}{dt}(Z(t))^{-1}$
Is this true to say:
$\frac{d}{{dU}}{\mathop{\rm logm}\nolimits} (A) = {A^{ - 1}}\frac{d}{{dU}}A$

where U is an m by n matrix and A is an m by m matrix which is a function of U ?

EDIT: A is not Symmetric and positive definite.

A: Neither of those statements is true.
However, you can use a block triangular matrix to calculate the Frechet derivative using the method of Kenney & Laub
$${\rm F}\Bigg(\begin{bmatrix}Z&E\\0&Z\end{bmatrix}\Bigg) =  \begin{bmatrix}F&L\\0&F\end{bmatrix} $$
where $F = {\rm F}(Z)$ and $$L = \lim_{dt\rightarrow\,0}\, \frac{{\rm F}(Z+E\,dt)-{\rm F}(Z)}{dt}$$
For your particular case
$$\eqalign{
 F &= {\rm logm}(Z) \cr
 E &= \frac{dZ}{dt} \cr
}$$
$Z$, $F$ and $E$ must be evaluated at the same moment in time, e.g. $t=t_0$.
This will give you the directional derivative of the function, in the $E$-direction.


text:
Q: Sowing current location in google map android This is my google map fragment. It works perfactly and shows a map in fragment but I want to show a marker on current location so how can I show it ? so that when fragment loads it zooms the camera on current location.
package canonical.FriendlyMap;

import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import com.google.android.gms.maps.*;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;
import canonical.FriendlyMap.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class MapFragment extends Fragment {

    GoogleMap googleMap;

    public MapFragment() {
        // Required empty public constructor
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment

        View v = inflater.inflate(R.layout.fragment_map, container, false);

        return v;
    }

}

A: check this link and check my answer for the fetch current location in google map ans link there are two classes first is default class and second is how to fetch current location.

A: Try to save your current location in db and update map after each 5 sec using handler and call displaymap function inside handler.So map will update your current location
    Marker currentMarker;
private void displaymap(String lat, String lon, String title) {

        if (currentMarker != null) {
            currentMarker.remove();
        }

        MarkerOptions marker = new MarkerOptions().position(new
                 LatLng(Double.
                 parseDouble(lat),Double.parseDouble(lon))).title(title);
                 marker.icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_schoolbus));
                 currentMarker =  map.addMarker(marker);
                 currentMarker.showInfoWindow();
                 currentMarker.setIcon(BitmapDescriptorFactory.fromResource(R.drawable.ic_schoolbus));
                 map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(Double.parseDouble(lat),Double.parseDouble(lon)), 15));

    }


text:
Q: BERT pre-training - masked_lm_accuracy is always zero I am trying to train BERT from scratch on a domain specific dataset using the official tensorflow github repository
I used this part of documentation to adapt the scripts to my use case, but I have a problem. First I use the create_pretraining_data.py script which processes the .txt file to .tfrecord. Everything goes well here, but when I run the train.py script which starts to train the BERT model, next_sentence_accuracy increases after some steps, but masked_lm_accuracy always remains 0.
This is the config.yaml file given to the train.py script:
task:
  init_checkpoint: ''
  model:
    cls_heads: [{activation: tanh, cls_token_idx: 0, dropout_rate: 0.1, inner_dim: 768, name: next_sentence, num_classes: 2}]
    encoder:
      type: bert
      bert:
        attention_dropout_rate: 0.1
        dropout_rate: 0.1
        hidden_activation: gelu
        hidden_size: 768
        initializer_range: 0.02
        intermediate_size: 3072
        max_position_embeddings: 512
        num_attention_heads: 12
        num_layers: 12
        type_vocab_size: 2
        vocab_size: 50000
  train_data:
    drop_remainder: true
    global_batch_size: 32
    input_path: 'test_clean_tfrecord/2014/*'
    is_training: true
    max_predictions_per_seq: 20
    seq_length: 128
    use_next_sentence_label: true
    use_position_id: false
    use_v2_feature_names: false
  validation_data:
    drop_remainder: false
    global_batch_size: 32
    input_path: 'test_clean_tfrecord/2014/*'
    is_training: false
    max_predictions_per_seq: 20
    seq_length: 128
    use_next_sentence_label: true
    use_position_id: false
    use_v2_feature_names: false
trainer:
  checkpoint_interval: 5
  max_to_keep: 5
  optimizer_config:
    learning_rate:
      polynomial:
        cycle: false
        decay_steps: 1000000
        end_learning_rate: 0.0
        initial_learning_rate: 0.0001
        power: 1.0
      type: polynomial
    optimizer:
      type: adamw
    warmup:
      polynomial:
        power: 1
        warmup_steps: 10000
      type: polynomial
  steps_per_loop: 1
  summary_interval: 1
  train_steps: 200
  validation_interval: 5
  validation_steps: 64

And this is the output of train.py after 5 training steps:
2022-12-10 13:21:48.184678: W tensorflow/core/framework/dataset.cc:769] Input of GeneratorDatasetOp::Dataset will not be optimized because the dataset does not implement the AsGraphDefInternal() method needed to apply optimizations.
C:\Users\Iulian\AppData\Roaming\Python\Python39\site-packages\keras\engine\functional.py:637:
UserWarning: Input dict contained keys ['masked_lm_positions',
'masked_lm_ids', 'masked_lm_weights', 'next_sentence_labels']
which did not match any model input. They will be ignored by the model.
  inputs = self._flatten_to_reference_inputs(inputs)
WARNING:tensorflow:Gradients do not exist for variables ['pooler_transform/kernel:0', 'pooler_transform/bias:0'] when minimizing the loss. If you're using `model.compile()`, did you forget to provide a `loss` argument?
W1210 13:21:52.408583 13512 utils.py:82] Gradients do not exist for variables ['pooler_transform/kernel:0', 'pooler_transform/bias:0'] when minimizing the loss. If you're using `model.compile()`, did you forget to provide a `loss` argument?
WARNING:tensorflow:Gradients do not exist for variables ['pooler_transform/kernel:0', 'pooler_transform/bias:0'] when minimizing the loss. If you're using `model.compile()`, did you forget to provide a `loss` argument?
W1210 13:21:58.768023 19348 utils.py:82] Gradients do not exist for variables ['pooler_transform/kernel:0', 'pooler_transform/bias:0'] when minimizing the loss. If you're using `model.compile()`, did you forget to provide a `loss` argument?
train | step:      2 | steps/sec:    0.0 | output:
    {'learning_rate': 1.9799998e-08,
     'lm_example_loss': 10.961581,
     'masked_lm_accuracy': 0.0,
     'next_sentence_accuracy': 0.5625,
     'next_sentence_loss': 0.73979986,
     'training_loss': 11.701381}
train | step:      3 | steps/sec:    0.0 | output:
    {'learning_rate': 2.97e-08,
     'lm_example_loss': 10.981846,
     'masked_lm_accuracy': 0.0,
     'next_sentence_accuracy': 0.5,
     'next_sentence_loss': 0.75065744,
     'training_loss': 11.732503}
train | step:      4 | steps/sec:    0.0 | output:
    {'learning_rate': 3.9599996e-08,
     'lm_example_loss': 10.988701,
     'masked_lm_accuracy': 0.0,
     'next_sentence_accuracy': 0.5625,
     'next_sentence_loss': 0.69400764,
     'training_loss': 11.682709}
train | step:      5 | steps/sec:    0.0 | output:
    {'learning_rate': 4.9500002e-08,
     'lm_example_loss': 11.004994,
     'masked_lm_accuracy': 0.0,
     'next_sentence_accuracy': 0.75,
     'next_sentence_loss': 0.5528765,
     'training_loss': 11.557871}

I've tried to look in the source code to find where is masked_lm_accuracy used (I thought that is needed a special flag to use it) and I found that this accuracy is added by default in the metrics' list of the model:
  def build_metrics(self, training=None):
    del training
    metrics = [
        tf.keras.metrics.SparseCategoricalAccuracy(name='masked_lm_accuracy'),
        tf.keras.metrics.Mean(name='lm_example_loss')
    ]
    # TODO(hongkuny): rethink how to manage metrics creation with heads.
    if self.task_config.train_data.use_next_sentence_label:
      metrics.append(
          tf.keras.metrics.SparseCategoricalAccuracy(
              name='next_sentence_accuracy'))
      metrics.append(tf.keras.metrics.Mean(name='next_sentence_loss'))
    return metrics

  def process_metrics(self, metrics, labels, model_outputs):
    with tf.name_scope('MaskedLMTask/process_metrics'):
      metrics = dict([(metric.name, metric) for metric in metrics])
      if 'masked_lm_accuracy' in metrics:
        metrics['masked_lm_accuracy'].update_state(
            labels['masked_lm_ids'], model_outputs['mlm_logits'],
            labels['masked_lm_weights'])
      if 'next_sentence_accuracy' in metrics:
        metrics['next_sentence_accuracy'].update_state(
            labels['next_sentence_labels'], model_outputs['next_sentence'])


text:
Q: internal links and slimScroll, scroll bar doesn't move to the right position I'm using the slimScroll plugin on my website, but when i click to one internal link the scroll bar doesn't move. The content moving to the right position, only the bar stay on the top. Any idea for that?

A: Had a similar issue with resizing and maintaining the scrollbar position a little while ago.
The solution I found was to calculate the current bar position and scroll manually.
$('/* scroll object /').slimScroll({ scrollTo: / Your value */ });
In your case however you will need to figure out the position which I'm going to guess you already have since your already moving the inner contents.


text:
Q: Adding mysql database credentials to environment variable results in operational error I'm deploying a Django web app with Heroku. I have a MySql database.
When my settings.py file contains a hardcoded password and username for the MySQL database, everything works.
I decided to store my username and password in environment variables and rewrote the settings.py file, as shown below.
DB_USER = os.environ.get('DB_USER')
DB_PASS = os.environ.get('DB_PASSWORD')

DATABASES = {
    'default': {
        #'ENGINE': 'django.db.backends.sqlite3',
        #'NAME': BASE_DIR / 'db.sqlite3',
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'pahlisch',
        'USER': DB_USER,
        'PASSWORD': DB_PASS,
        'HOST': '123.mysql.database.azure.com',
        'PORT': '3306',
        'OPTIONS': {'sql_mode': 'STRICT_ALL_TABLES'}
    }
}

Next, I added my local environment variables to Heroku.
When I attempt to load the site, I get the following message.
(1045, "Access denied for user ''mattrw2'@'44.167.157.221' (using password: NO)")
I don't understand what is wrong.

A: The MySQL documentation shows that this kind of an error means that, contrary to what you are stating, you did not supply a password.
I suggest you test whether your environment variables are actually stored and accessible. Try to log into the shell from manage.py and see if you can access your environment variables.


text:
Q: Работа с видео Приветствую всех, кто зашел сюда :)
Пишу небольшую игру, в которой, мне необходимо вставить видео и проиграть его, что-то типа интро.С этим проблем нет, все воспроизводит, но, как например мне воспроизвести его один раз и остановить после его окончания?
IsLooped = false не помогает. Все равно идет в цикл.
A: Возможно, стоит завести перечисление с флагами-состояниями.Так для видео будет свое состояние и, пока игровой процесс будет в этом самом состоянии, проверяй сколько времени прошло от начала показа видео и сравнивай с продолжительностью интро. Т.е. две переменных - продолжительность видео, и время от начала показа видео (естественно, в каждом кадре его необходимо увеличивать).
В принципе, можно сразу рассчитать время, в которое должно закончиться видео и с ним уже и сравнить прошедшее время.


text:
Q: Delphi - authentication mechanism suggestions This question has only educational purpose. At this moment I'm making a small application on which I want to include an authentication mechanism. Application should have access to Internet when is installed, but after can work offline. Until now I've thinking of the following solutions:
1) Classic: Username and password(encrypted) sent to a authentication webservice - problems when Internet connection is down.
2) Generate a password based on motherboard/hard-disk serial no - this is generating issues when components are changed.
Also, I want to include a 'remember password' checkbox. Which is the safest way to do this? Where should I store this info?
I believe that most of you have made an authentication mechanism, more or less complex, and I'm asking for your opinion. Also, I know that everything can be hacked but I want to make it as difficult as I can.

A: Don't reinvent the wheel!
Some rules:

*

*authentication must be per user;

*authentication must be for a session, i.e. for a network connection and some given time;

*never stores a password clearly on disk, but uses a hash;

*never transmit a password over the network, but uses a hash;

*add some "salt" (i.e. random data) during the hashing of any value;

*try to achieve some kind of Zero-knowledge proof.

To make it simple, the server create a "challenge" for the client.
Typical implementation can be:

*

*Client connect to a server, saying its user name;

*Server check for the name, then create and send a challenge for the Client;

*Client ask the user to enter its password, then use it to respond to the challenge;

*Server receive the answer, then check the challenge is correct.

You can create a challenge using a good hashing algorithm (take a look at our very fast SHA-256 functions), and follow these steps:

*

*The User enters its initial password, then a SHA-256 is transmitted to the server (encrypted via a fixed private key e.g.);

*The Server store user names/passwords hash as key/values;

*The Server create a challenge by creating a random block (using SHA-256 of some random data, including current time and others Randomize+Random values....);

*The Client hashes this random block (received from the server) with the hash of the password just entered by the user;

*The Server receives the result from the Client, compute its own version using the stored password hash of the user, and compare the two values: challenge is successful if both value are the same.

A: Depends on what you want to achieve. For instance, you might first retrieve some critical data from the server, then always store it locally, encrypted by login-password. This way no password is stored on the PC and you have to enter it to access the data.

A: Well for remembering the password, you could save its hash locally, which cannot be un-hashed to obtain the real pwd...

A: You can do what browsers do using cookies and storing the password on a encrypted file or, even better, storing it to a database. Remember that you need to update the database password in case of user change it on the server.
You do not need to generate the password. You can ask user to do so, and check its complexity to ensure that it is safe.
And always use SSL when connection to a webservice, to ensure all data is safe to transmit.


text:
Q: I can't find the Android keytool I am trying to follow the Android mapping tutorial and got to this part where I had to get an API key.
I have found my debug.keystore but there does not appear to be a keytool application in the directory:
C:\Documents and Settings\tward\\.android>ls
adb_usb.ini      avd       debug.keystore  repositories.cfg androidtool.cfg  ddms.cfg  default.keyset

There is also no keytool in this directory:
C:\Android\android-sdk-windows\tools>ls
AdbWinApi.dll     apkbuilder.bat       etc1tool.exe         mksdcard.exe
AdbWinUsbApi.dll  ddms.bat             fastboot.exe         source.properties
Jet               dmtracedump.exe      hierarchyviewer.bat  sqlite3.exe
NOTICE.txt        draw9patch.bat       hprof-conv.exe       traceview.bat
adb.exe           emulator.exe         layoutopt.bat        zipalign.exe
android.bat       emulator_NOTICE.txt  lib

I am using Eclipse as my editor and believe that I have downloaded all the latest SDK.
What am I doing wrong?

A: I never installed Java, but when you install Android Studio it has its own version within the Android directory.  Here is where mine is located.  Your path may be similar.  After that you can either put the keytool into your path, or just run it from that directory.
C:\Program Files\Android\Android Studio\jre\bin

A: keytool comes with the Java SDK. You should find it in the directory that contains javac, etc.

A: This seemed far harder to find than it needs to be for OSX. Too many conflicting posts
For MAC OSX Mavericks Java JDK 7, follow these steps to locate keytool:
Firstly make sure to install Java JDK:
http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html
Then type this into command prompt:
/usr/libexec/java_home -v 1.7
it will spit out something like:
/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home

keytool is located in the same directory as javac. ie:
/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/bin

From bin directory you can use the keytool.

A: If you're using Android Studio for Windows to create a release keystore and signed .apk, just follow these steps:
1) Build > Generate Signed APK
2) Choose "Create New...", choose the path to the keystore, and enter all the required data
3) After your keystore (your_keystore_name.jks) has been created, you will then use it to create your first signed apk at a destination of your choosing
I haven't seen a need to use the command tool if you have an IDE like Android Studio.

A: Ok I did this in Windows 7 32-bit system.
step 1: go to - C:\Program Files\Java\jdk1.6.0_26\bin  - and run jarsigner.exe first ( double click)
step2: locate  debug.keystore, in my case it was - C:\Users\MyPcName\.android
step3: open command prompt and go to dir - C:\Program Files\Java\jdk1.6.0_26\bin   and give the following command:
         keytool -list -keystore "C:\Users\MyPcName\.android\debug.keystore"
step4: it will ask for Keystore password now.
            ( which I am figuring out... :-? )
update: OK in my case password was ´ android ´.
- (I am using Eclipse for android, so I found it here)
Follow the steps in eclipse:
                  Windows>preferences>android>build>..
( Look in `default Debug Keystore´ field.)

Command to change the keystore password (look here): Keystore change passwords

A: Okay, so this post is from six months ago, but I thought I would add some info here for people who are confused about the whole API key/MD5 fingerprint business. It took me a while to figure out, so I assume others have had trouble with it too (unless I'm just that dull).
These directions are for Windows XP, but I imagine it is similar for other versions of Windows.  It appears Mac and Linux users have an easier time with this so I won't address them.
So in order to use mapviews in your Android apps, Google wants to check in with them so you can sign off on an Android Maps APIs Terms Of Service agreement. I think they don't want you to make any turn-by-turn GPS apps to compete with theirs or something. I didn't really read it. Oops.
So go to http://code.google.com/android/maps-api-signup.html and check it out. They want you to check the "I have read and agree with the terms and conditions" box and enter your certificate's MD5 fingerprint. Wtf is that, you might say. I don't know, but just do what I say and your Android app doesn't get hurt.
Go to Start>Run and type cmd to open up a command prompt. You need to navigate to the directory with the keytool.exe file, which might be in a slightly different place depending on which version JDK you have installed. Mine is in C:\Program Files\Java\jdk1.6.0_21\bin but try browsing to the Java folder and see what version you have and change the path accordingly.
After navigating to C:\Program Files\Java\<"your JDK version here">\bin in the command prompt, type
keytool -list -keystore "C:/Documents and Settings/<"your user name here">/.android/debug.keystore"

with the quotes.  Of course <"your user name here"> would be your own Windows username.
(If you are having trouble finding this path and you are using Eclipse, you can check Window>preferences>Android>Build and check out the "Default Debug keystore")
Press enter and it will prompt you for a password.  Just press enter.  And voila, at the bottom is your MD5 fingerprint. Type your fingerprint into the text box at the Android Maps API Signup page and hit Generate API Key.
And there's your key in all its glory, with a handy sample xml layout with your key entered for you to copy and paste.

A: The 4-Step Answer above worked for me, but it returns the SH1-key... but Google asks for the MD5-key to generate your API key.
One needs simply to add a '-v' in the command in step 3. -like so:
Updated 4-Step Answer
Ok I did this in Windows 7 32-bit system.
step 1: go to - C:\Program Files\Java\jdk1.7.0\bin - and run jarsigner.exe first ( double click)
step2: locate debug.keystore (in Eclipse: Windows/Preferences/Android/build..), in my case it was - C:\Users\MyPcName.android
step3: open command prompt and go to dir - C:\Program Files\Java\jdk1.7.0\bin and give the following command: keytool -v -list -keystore "C:\Users\MyPcName.android\debug.keystore"
step4: it will ask for Keystore password now. The default is 'android'

A: In fact, eclipse export will call
java -jar android-sdk-windows\tools\lib\sdklib.jar com.android.sdklib.build.ApkBuilderMain

and then call com.android.sdklib.internal.build.SignedJarBuilder.

A: One thing that wasn't mentioned here (but kept me from running keytool altogether) was that you need to run the Command Prompt as Administrator.
Just wanted to share it...

A: No need to use the command line.
If you FILE-> "Export Android Application" in the ADK then it will allow you to create a key and then produce your .apk file.


text:
Q: How can I resolve an error using dynamic SQL When I execute the stored procedure, I receive the following error message.
Msg 245, Level 16, State 1, Procedure USP_History_Building, Line 35 [Batch Start Line 8]
Conversion failed when converting the nvarchar value 'SELECT * FROM EDB_Q217.dbo.POSTAL_ADDRESS PA WHERE PA.BUILDING_ID = ' to data type int.
I've tried slight changes to the code but none work.
ALTER PROCEDURE [dbo].[USP_History_Building]

     @BUILDING int

AS

DECLARE @quarterStart int = 2
DECLARE @quarterEnd int = 1
DECLARE @yearStart int = 17
DECLARE @yearEnd int = 19
DECLARE @BUILDING_ID int
DECLARE @year int
DECLARE @quarter int

DECLARE @quarterForDbName nvarchar(4)
DECLARE @sqlStatement nvarchar(max)

SET @year = @yearStart
SET @quarter = @quarterStart
SET @sqlStatement = ''
SET  @BUILDING_ID = @BUILDING

WHILE @year <= @yearEnd
BEGIN
WHILE ((@year < @yearEnd AND @quarter <= 4) OR (@year = @yearEnd AND
@quarter <= @quarterEnd))

BEGIN
SET @quarterForDbName = 'Q' + CAST(@quarter AS nvarchar(1)) +
CAST(@year AS nvarchar(2))

    SET @sqlStatement = @sqlStatement +
    'SELECT * FROM EDB_'+ @quarterForDbName +'.dbo.POSTAL_ADDRESS PA
    WHERE PA.BUILDING_ID = ' + @BUILDING_ID

  SET @quarter = @quarter + 1

   END

SET @quarter = 1
SET @year = @year + 1

END

PRINT @sqlStatement
EXEC (@sqlStatement)

The expected result is that a number of address fields are returned for the previous 8 quarters.

A: Use sp_executesql to pass parameters to code:
WHILE @year <= @yearEnd
BEGIN
    WHILE ((@year < @yearEnd AND @quarter <= 4) OR (@year = @yearEnd AND @quarter <= @quarterEnd))
    BEGIN
        SET @quarterForDbName = 'Q' + CAST(@quarter AS nvarchar(1)) + CAST(@year AS nvarchar(2));

        SET @sqlStatement = @sqlStatement + '
SELECT *
FROM EDB_'+ @quarterForDbName +'.dbo.POSTAL_ADDRESS PA
WHERE PA.BUILDING_ID = @BUILDING_ID
';
        SET @quarter = @quarter + 1 ;
    END;
    SET @quarter = 1;
    SET @year = @year + 1;
END;
PRINT @sqlStatement
EXEC sp_executesql @sqlStatement,
                   N'@BuildingId int',
                   @BuildingId=@BuildingId;

You cannot pass in the table name as a parameter, but you should pass in constant values using parameters.


text:
Q: Fade background colour up/down when scrolling from the top I have a menu strip that is fixed to the top of the page, at the point when you scroll 50px from the top a class is added to it - which in turn changes the colour. And vice versa when you get back to the top.
At the moment it just adds a class when you're 50px from the top - which visually causes the colour to flick between one or the other.
Is there a way to fade from one into another when you hit 50px from the top, then reverse the process when you scroll up the page?
This is my code:
// Change menu colour when it moves from the top of the page
$(window).on("scroll", function() {
    if($(window).scrollTop() > 50) {
        $(".headerStrip").addClass("activated");
    } else {
        //remove the background property so it comes transparent again (defined in your css)
       $(".headerStrip").removeClass("activated");
    }
});

.headerStrip{
background:rgba(239, 239, 239, 0.5);
padding:0;
position: fixed;
width: 100%;
z-index: 9999;
}
.activated {
background:rgba(239, 239, 239, 0.9);
}

A: .activated {
    background: rgba(239, 239, 239, 0.5);
      transition: background-color 0.5s ease;

}

Is this the kinda thing? You could jquery animate/fadeIn too but I think for something small this could be the jobby you're looking for plus saving on the machine doing more hard  work than it needs to?!

A: You can add transition property in your css.
And in your JQuery code change only the background property.
Example

$(window).on("scroll", function() {
    if($(window).scrollTop() > 50) {
        $(".headerStrip").css("background","rgba(239, 0, 0, 0.5)");
    } else {
       $(".headerStrip").css("background","rgba(239, 239, 239, 0.5)");
    }
});
.headerStrip{
background:rgba(239, 239, 239, 0.5);
padding:0;
position: fixed;
width: 100%;
z-index: 9999;
transition:background 2s;
}
.activated {
background-color:red;
}

.body{
height:4000px;
}

  test

A:  **CSS**

 header {
    background-color:blue;
    height: 120px;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    -webkit-transition: background-color 700ms linear;
    -moz-transition: background-color 700ms linear;
    -o-transition: background-color 700ms linear;
    -ms-transition: background-color 700ms linear;
    transition: background-color 700ms linear;
}
header.scrolled {
    background-color: red;
}
section {
    width: 80%;
    margin: 0 auto;
}
}

HTML

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales ligula in libero.

Sed dignissim lacinia nunc. Curabitur tortor. Pellentesque nibh. Aenean quam. In scelerisque sem at dolor. Maecenas mattis. Sed convallis tristique sem. Proin ut ligula vel nunc egestas porttitor. Morbi lectus risus, iaculis vel, suscipit quis, luctus non, massa. Fusce ac turpis quis ligula lacinia aliquet. Mauris ipsum.

Nulla metus metus, ullamcorper vel, tincidunt sed, euismod in, nibh. Quisque volutpat condimentum velit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nam nec ante. Sed lacinia, urna non tincidunt mattis, tortor neque adipiscing diam, a cursus ipsum ante quis turpis. Nulla facilisi. Ut fringilla. Suspendisse potenti. Nunc feugiat mi a tellus consequat imperdiet. Vestibulum sapien. Proin quam. Etiam ultrices. Suspendisse in justo eu magna luctus suscipit. Sed lectus.

Integer euismod lacus luctus magna. Quisque cursus, metus vitae pharetra auctor, sem massa mattis sem, at interdum magna augue eget diam. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Morbi lacinia molestie dui. Praesent blandit dolor. Sed non quam. In vel mi sit amet augue congue elementum. Morbi in ipsum sit amet pede facilisis laoreet. Donec lacus nunc, viverra nec, blandit vel, egestas et, augue. Vestibulum tincidunt malesuada tellus. Ut ultrices ultrices enim. Curabitur sit amet mauris. Morbi in dui quis est pulvinar ullamcorper. Nulla facilisi.

Integer lacinia sollicitudin massa. Cras metus. Sed aliquet risus a tortor. Integer id quam. Morbi mi. Quisque nisl felis, venenatis tristique, dignissim in, ultrices sit amet, augue. Proin sodales libero eget ante. Nulla quam. Aenean laoreet. Vestibulum nisi lectus, commodo ac, facilisis ac, ultricies eu, pede. Ut orci risus, accumsan porttitor, cursus quis, aliquet eget, justo. Sed pretium blandit orci. Ut eu diam at pede suscipit sodales.

Aenean lectus elit, fermentum non, convallis id, sagittis at, neque. Nullam mauris orci, aliquet et, iaculis et, viverra vitae, ligula. Nulla ut felis in purus aliquam imperdiet. Maecenas aliquet mollis lectus. Vivamus consectetuer risus et tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta.

Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales ligula in libero. Sed dignissim lacinia nunc. Curabitur tortor. Pellentesque nibh. Aenean quam. In scelerisque sem at dolor. Maecenas mattis. Sed convallis tristique sem. Proin ut ligula vel nunc egestas porttitor. Morbi lectus risus, iaculis vel, suscipit quis, luctus non, massa. Fusce ac turpis quis ligula lacinia aliquet.

Mauris ipsum. Nulla metus metus, ullamcorper vel, tincidunt sed, euismod in, nibh. Quisque volutpat condimentum velit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nam nec ante. Sed lacinia, urna non tincidunt mattis, tortor neque adipiscing diam, a cursus ipsum ante quis turpis. Nulla facilisi. Ut fringilla. Suspendisse potenti. Nunc feugiat mi a tellus consequat imperdiet. Vestibulum sapien. Proin quam.

Etiam ultrices. Suspendisse in justo eu magna luctus suscipit. Sed lectus. Integer euismod lacus luctus magna. Quisque cursus, metus vitae pharetra auctor, sem massa mattis sem, at interdum magna augue eget diam. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Morbi lacinia molestie dui. Praesent blandit dolor. Sed non quam. In vel mi sit amet augue congue elementum. Morbi in ipsum sit amet pede facilisis laoreet. Donec lacus nunc, viverra nec, blandit vel, egestas et, augue.

Vestibulum tincidunt malesuada tellus. Ut ultrices ultrices enim. Curabitur sit amet mauris. Morbi in dui quis est pulvinar ullamcorper. Nulla facilisi. Integer lacinia sollicitudin massa. Cras metus. Sed aliquet risus a tortor. Integer id quam. Morbi mi. Quisque nisl felis, venenatis tristique, dignissim in, ultrices sit amet, augue.

Proin sodales libero eget ante. Nulla quam. Aenean laoreet. Vestibulum nisi lectus, commodo ac, facilisis ac, ultricies eu, pede. Ut orci risus, accumsan porttitor, cursus quis, aliquet eget, justo. Sed pretium blandit orci. Ut eu diam at pede suscipit sodales. Aenean lectus elit, fermentum non, convallis id, sagittis at, neque. Nullam mauris orci, aliquet et, iaculis et, viverra vitae, ligula. Nulla ut felis in purus aliquam imperdiet. Maecenas aliquet mollis lectus. Vivamus consectetuer risus et tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

Curabitur sodales ligula in libero. Sed dignissim lacinia nunc. Curabitur tortor. Pellentesque nibh. Aenean quam. In scelerisque sem at dolor. Maecenas mattis. Sed convallis tristique sem. Proin ut ligula vel nunc egestas porttitor. Morbi lectus risus, iaculis vel, suscipit quis, luctus non, massa. Fusce ac turpis quis ligula lacinia aliquet. Mauris ipsum.

Nulla metus metus, ullamcorper vel, tincidunt sed, euismod in, nibh. Quisque volutpat condimentum velit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nam nec ante. Sed lacinia, urna non tincidunt mattis, tortor neque adipiscing diam, a cursus ipsum ante quis turpis. Nulla facilisi. Ut fringilla. Suspendisse potenti. Nunc feugiat mi a tellus consequat imperdiet. Vestibulum sapien. Proin quam. Etiam ultrices.

Suspendisse in justo eu magna luctus suscipit. Sed lectus. Integer euismod lacus luctus magna. Quisque cursus, metus vitae pharetra auctor, sem massa mattis sem, at interdum magna augue eget diam. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Morbi lacinia molestie dui. Praesent blandit dolor. Sed non quam. In vel mi sit amet augue congue elementum. Morbi in ipsum sit amet pede facilisis laoreet. Donec lacus nunc, viverra nec, blandit vel, egestas et, augue. Vestibulum tincidunt malesuada tellus. Ut ultrices ultrices enim.

Curabitur sit amet mauris. Morbi in dui quis est pulvinar ullamcorper. Nulla facilisi. Integer lacinia sollicitudin massa. Cras metus. Sed aliquet risus a tortor. Integer id quam. Morbi mi. Quisque nisl felis, venenatis tristique, dignissim in, ultrices sit amet, augue. Proin sodales libero eget ante. Nulla quam. Aenean laoreet.

Vestibulum nisi lectus, commodo ac, facilisis ac, ultricies eu, pede. Ut orci risus, accumsan porttitor, cursus quis, aliquet eget, justo. Sed pretium blandit orci. Ut eu diam at pede suscipit sodales. Aenean lectus elit, fermentum non, convallis id, sagittis at, neque. Nullam mauris orci, aliquet et, iaculis et, viverra vitae, ligula. Nulla ut felis in purus aliquam imperdiet. Maecenas aliquet mollis lectus. Vivamus consectetuer risus et tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi.

Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales ligula in libero. Sed dignissim lacinia nunc. Curabitur tortor. Pellentesque nibh. Aenean quam. In scelerisque sem at dolor.

Maecenas mattis. Sed convallis tristique sem. Proin ut ligula vel nunc egestas porttitor. Morbi lectus risus, iaculis vel, suscipit quis, luctus non, massa. Fusce ac turpis quis ligula lacinia aliquet. Mauris ipsum. Nulla metus metus, ullamcorper vel, tincidunt sed, euismod in, nibh. Quisque volutpat condimentum velit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nam nec ante. Sed lacinia, urna non tincidunt mattis, tortor neque adipiscing diam, a cursus ipsum ante quis turpis. Nulla facilisi. Ut fringilla.

Suspendisse potenti. Nunc feugiat mi a tellus consequat imperdiet. Vestibulum sapien. Proin quam. Etiam ultrices. Suspendisse in justo eu magna luctus suscipit. Sed lectus. Integer euismod lacus luctus magna. Quisque cursus, metus vitae pharetra auctor, sem massa mattis sem, at interdum magna augue eget diam. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Morbi lacinia molestie dui. Praesent blandit dolor.

JS
$(document).ready(function () {
    $(window).scroll(function () {
        if ($(document).scrollTop() > 100) {
            $("header").addClass("scrolled");
        } else {
            $("header").removeClass("scrolled");
        }
    });
});

http://jsfiddle.net/BramVanroy/gcSe8/


text:
Q: Correctly rendering ActionLinks on MVC site with vanityURL I need to create site where URL patterns allow for a personalized URL like www.mysite.com brings up the main portal.
www.mysite.com/customer1 brings the portal customized for that customer (same actions and controllers called the argument for customization will be pulled from URL).
I want the prefix '/customer1/' to be maintained in the URL all the time on all pages.
I have the following routes which work fine:
routes.MapRoute(
    name: "CompanyUrl",
    url: "{companyurl}/{controller}/{action}/{id}",
    defaults: new { companyurl = UrlParameter.Optional, controller = "Home", action = "Index", id = UrlParameter.Optional }
);

routes.MapRoute(
    name: "Default",
    url: "{controller}/{action}/{id}",
    defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);

However, when I enter the site on the vanityURL so on www.mysite.com/customer1 all action links are rendered OK as
Contact

but when I enter just www.mysite.com, all links are rendered as:
Testimonials

and I cannot navigate anywhere.
How can I get them to render correctly without the companyurl parameter and without the additional /?

A: Assuming I understood correctly, try this (though check if it works as expected throughout):

*

*remove the default for {companyurl} - this makes it "mandatory" for that route (meaning it will not "match" your CompanyUrl route config if not present and fall through next config which is the Default config).

So your "CompanyUrl" Route:
routes.MapRoute(
    name: "CompanyUrl",
    url: "{companyurl}/{controller}/{action}/{id}",
    defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);

Hth...


text:
Q: JavaScript dateFormat error? I am trying to get a field named BASVURUTARIHI(Date) from DataSet. But if I only bind it with Eval, it shows dd/mm/yyyy HH/MM/SS. I don't want the hours and minutes. So, I am trying to change the dateformat but it gives me the error:

CS0103: The name 'dateFormat' does not exist in the current context

<dx:ASPxLabel ID="ASPxLabel2" runat="server" Text='<%# dateFormat(Eval("BASVURUTARIHI"),"dd/mm/yyyy") %>'></dx:ASPxLabel>

I don't know a lot about JavaScript. Can you help me with this please?

A: This is ASP.NET code, try to have this instead:
Text='<%# ((DateTime)Eval("BASVURUTARIHI")).ToString("dd/mm/yyyy") %>'>

Edit: to avoid error when the value is null, change to:
Text='<%# (Eval("BASVURUTARIHI") == null) ? "" : ((DateTime)Eval("BASVURUTARIHI")).ToString("dd/mm/yyyy") %>'>

A: Try this:
<dx:ASPxLabel ID="ASPxLabel2" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "BASVURUTARIHI", "{0:dd MMM yyyy}")%>'></dx:ASPxLabel>

A: You can use this code:
<dx:ASPxLabel ID="ASPxLabel2" runat="server" Text='<%# date("j/ n/ Y",Eval("BASVURUTARIHI")) %>'>
                        </dx:ASPxLabel>


text:
Q: Use UART events with Simplelink in Contiki-ng I'm actually trying to receive serial line message using the UART0 of a CC1310 with Contiki-ng.
I have implemented a uart callback function with will group all the characters received into a single variable, and stop collecting when it receives a "\n" character.
int uart_handler(unsigned char c)
{
  if (c == '\n')
  {
    end_of_string = 1;
    index = 0;
  }
  else
  {
    received_message_from_uart[index] = c;
    index++;
  }
  return 0;
}

The uart0 is initialised at the main and only process of the system and then it waits in a infinite while loop until the flag end_of_string
PROCESS_THREAD(udp_client_process, ev, data)
{

  PROCESS_BEGIN();
  uart0_init();
  uart0_set_callback(uart_handler);

  while (1)
  {
    //wait for uart message
    if (end_of_string == 1 && received_message_from_uart[0] != 0)
    {
      LOG_INFO("Received mensaje\n");

      index = 0;
      end_of_string = 0;

      //  Delete received message from uart
      memset(received_message_from_uart, 0, sizeof received_message_from_uart);
    }
    etimer_set(&timer, 0.1 * CLOCK_SECOND);
    PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&timer));
  }
  PROCESS_END();
}

As you can see, the while loop stops at each iteration with a minimum time timer event. Although this method works, I think it is a bad way to do it, as I have read that there are uart events that can be used, but I have not been able to find anything for the CC1310.
Is it possible to use the CC1310 (or any other simplelink platform) UART with events and stop doing unnecessary iterations until a message has reached the device?


text:
Q: Windows XP cannot read DVD burned on Ubuntu The story :
I have burned a DVD disc on Ubuntu using Brasero. When file burning was complete, I canceled the burning of checksum to DVD. Then I put that DVD on Windows XP (SP3) and copied all the files from DVD to the hard drive (no errors when copying). When that was done I discovered that all copied files are not readable. What is more, all the files on that DVD also shown to be not readable, even though all file names, directories were in their place.
What I found out?
Windows detect that the disc is in CDFS (CD-ROM File System).
Disc is clean as new, have no scratches.
All files while opened in Notepad++ look like "NULNULNULNULNUL" in one line.
The size of files is normal.
Other discs that are recognized as CDFS can be read with no problems.
What I tried?
Starting CDFS service in Windows registry. Result - a new device in Windows Device Manager (JUBS JGH2ZCT SCSI CdRom Device).
Removing my CD/DVD device from Device Manager. Result - Windows restarted the system and reinstalled the driver.
So... how to read the DVD, when I have no access to any other PC, any other OS?

A: You can try using a CD/DVD data recovery tool like isobuster


text:
Q: How do I interpret precision and scale of a number in a database? I have the following column specified in a database: decimal(5,2)
How does one interpret this?
According to the properties on the column as viewed in SQL Server Management studio I can see that it means: decimal(Numeric precision, Numeric scale).
What do precision and scale mean in real terms?
It would be easy to interpret this as a decimal with 5 digits and two decimals places...ie 12345.12
P.S. I've been able to determine the correct answer from a colleague but had great difficulty finding an answer online. As such, I'd like to have the question and answer documented here on stackoverflow for future reference.

A: Numeric precision refers to the maximum number of digits that are present in the number.
ie 1234567.89 has a precision of 9
Numeric scale refers to the maximum number of decimal places
ie 123456.789 has a scale of 3
Thus the maximum allowed value for decimal(5,2) is 999.99

A: Precision, Scale, and Length in the SQL Server 2000 documentation reads:

Precision is the number of digits in a number. Scale is the number of digits to the right of the decimal point in a number. For example, the number 123.45 has a precision of 5 and a scale of 2.

A: Precision of a number is the number of digits.
Scale of a number is the number of digits after the decimal point.
What is generally implied when setting precision and scale on field definition is that they represent maximum values.
Example, a decimal field defined with precision=5 and scale=2 would allow the following values:

*

*123.45 (p=5,s=2)

*12.34 (p=4,s=2)

*12345 (p=5,s=0)

*123.4 (p=4,s=1)

*0 (p=0,s=0)

The following values are not allowed or would cause a data loss:

*

*12.345 (p=5,s=3) => could be truncated into 12.35 (p=4,s=2)

*1234.56 (p=6,s=2) => could be truncated into 1234.6 (p=5,s=1)

*123.456 (p=6,s=3) => could be truncated into 123.46 (p=5,s=2)

*123450 (p=6,s=0) => out of range

Note that the range is generally defined by the precision: |value| < 10^p ...

A: Precision refers to the total number of digits while scale refers to the digits allowed after the decimal.
The example quoted by would have a precision of 7 and a scale of 2.
Moreover, DECIMAL(precision, scale) is an exact value data type unlike something like a FLOAT(precision, scale) which stores approximate numeric data.
For example, a column defined as FLOAT(7,4) is displayed as -999.9999. MySQL performs rounding when storing values, so if you insert 999.00009 into a FLOAT(7,4) column, the approximate result is 999.0001.
Let me know if this helps!


text:
Q: google-services.json in release. How to guarantee that google-services.json is not package in the APK release? Once we add google-services.json for integration between flutter app and firebase, it contains our fingerprint (SHA-1 key) generated.
So, if I want to create a app release version, what should I do to remove the fingerprint so it will not me shared in the Play Store?
Thanx in advance.

A: Once you publish an APK to the play store, that APK's SHA-1 is visible to the entire world.  You can't hide this value.  This is what's used to validate that your APK is authentic.


text:
Q: Can every hyperplane be described as $\{(x_1,\dots,x_n)\in\Bbb F^n\mid a_1x_1+\dots+a_nx_n=0\}$ for some $a_1,...,a_n$ with $a_i\neq0$ for some $i$? I know from this answer that if $H = \{ (x_1, …, x_n) \in \mathbb{F}^n \mid a_1x_1 + … + a_n x_n = 0 \}$ for some $a_1, …, a_n$ with $a_i \neq 0$ for some $i$, then $H$ is a hyperplane. My question is about the converse:

Can every hyperplane $H$ be described as $H = \{ (x_1, …, x_n) \in \mathbb{F}^n \mid a_1x_1 + … + a_n x_n = 0 \}$ for some $a_1, …, a_n$ with $a_i \neq 0$ for some $i$?

(My definition of hyperplane is a subspace whose dimension is 1 less than that of the ambient space.)
Here is my attempt:
Let $H$ be a hyperplane. Write $\mathbb{F}^n = H \oplus H^\perp$, and note that $H^\perp$ has dimension 1, so it is spanned by some nonzero vector $a$, i.e. $H^\perp = \text{span}(a)$. Take the orthogonal complement of both sides to get $H = (\text{span}(a))^\perp$. So we have $H = (\text{span}(a))^\perp = \{ a \}^\perp = \{ (x_1, …, x_n) \in \mathbb{F}^n \mid a_1x_1 + … + a_nx_n = 0 \}$. Since $a$ was nonzero, some $a_i$ is nonzero, as required.

A: Let $v_2,...,v_n$ span $H$. Choose $v_1 \notin H$, then the $v_k$ span the ambient space.
Define a linear functional by defining it on the basis: $f(v_1) = 1$ and $f(v_k) = 0$ for $k >1$.
Then $H = \{ x | f(x) = 0 \}$. Note that $f(v_1) = 1$ so $f \neq 0$.
We have
$f(x) = f(\sum_k x_k e_k) = \sum_k x_k f(e_k) $ and note that $a_k=f(e_k) \neq 0$ for at least one $k$ (otherwise this would contradict $f \neq 0$).
Then
$H= \{ x | \sum_k a_k x_k = 0 \}$ as required.

A: An important observation is,$\mathbb{F}^n$ is equipped with the natural basis vectors $e_{k}$ where $e_{k}$ is the vector which is $1$ at the $k^{th}$ place and $0$ elsewhere.Now you have the collection of linear functionals $e_{k}^{*}$ where $e_{k}^{*}(e_{m})=\delta_{km}$,which form a basis for the dual of $\mathbb{F}^{n}$.Now notice that the hyperplane $H$ is the kernel of a linear functional $f$,which can be expressed uniquely in terms of these dual basis vectors as $f=\sum_{k=1}^{n} a_{k}e_{k}^{*}$.Being the kernel of $f$,$H$ is the set of all $(x_{1},x_{2},..,x_{n})$ such that $f(x_{1},x_{2},..,x_{n})=0$,which,when $f$ is expressed as above and $(x_{1},x_{2},..,x_{n})$ is expressed as a linear combination of the natural basis vectors in $\mathbb{F}^{n}$,gives what you are looking for.


text:
Q: Preposition with emphasis

*

*Our Physics teacher often emphasizes on the end for a lot of
  practice.

*Our Physics teacher often emphasizes the end for a lot of
  practice.

*Our Physics teacher often emphasizes upon the end for a lot of
   practice.

What is difference and which is/are correct.

A: None of your examples makes sense. Perhaps you mean:

At the end of a lecture our Physics teacher often emphasizes the need for a lot of practice.


text:
Q: Android room. error: Cannot figure out how to read this field from a cursor the SQLite database contains three tables 1) employee 2) skills 3) departments. The idea is this - the employee table stores data such as id, name, last_name, salary. Also, an employee has data such as skill and department, but there can be several data for one employee, so I created two separate skills and departments tables and linked them using the key to the employee table where the primary key for employee is id. Now with the help of id I need to display all the information about employee including his skills which can be several and departments. I implement the whole process using the ROOM library.
Here is the request I make
@Query("SELECT employ.id ,employ.name ,employ.last_name, employ.salary, " +
        "skill.skill, department.department_name FROM employ INNER JOIN skill,department " +
        "ON employ.id = :id AND skill.employ_id = :id AND department.employ_id = :id ")
AllAboutEmployee getAllAboutEmployee(String id);

Here is the AllAboutEmployee class whose object accepts the result of the request
public class AllAboutEmployee {

@ColumnInfo(name = "id")
private String id;

@ColumnInfo(name = "name")
private String name;

@ColumnInfo(name = "last_name")
private String lastName;

@ColumnInfo(name = "salary")
private String salary;

@ColumnInfo(name = "department_name")
private List<String> departmentsList; // THE ERROR IS ON THIS LINE

@ColumnInfo(name = "skill")
private List<String> skillList; // THE ERROR IS ON THIS  LINE

public AllAboutEmployee(String id, String name, String lastName, String salary, List<String> departmentsList, List<String> skillList) {
    this.id = id;
    this.name = name;
    this.lastName = lastName;
    this.salary = salary;
    this.departmentsList = departmentsList;
    this.skillList = skillList;
}
public String getId() {
    return id;
}

public void setId(String id) {
    this.id = id;
}

public String getName() {
    return name;
}

public void setName(String name) {
    this.name = name;
}

public String getLastName() {
    return lastName;
}

public void setLastName(String lastName) {
    this.lastName = lastName;
}

public String getSalary() {
    return salary;
}

public void setSalary(String salary) {
    this.salary = salary;
}

public List<String> getDepartmentsList() {
    return departmentsList;
}

public void setDepartmentsList(List<String> departmentsList) {
    this.departmentsList = departmentsList;
}

public List<String> getSkillList() {
    return skillList;
}

public void setSkillList(List<String> skillList) {
    this.skillList = skillList;
}

}
So ther are two fields int the  AllAboutEmployee class with the List type, in order to put several skills and several departments there. It is in these fields that an error occurs. Thank you in advance for your help

A: Wow.. that's so cool.. I was coding all day and got this error too!
You have to create a TypeCoverter to store your data into your Room's Database.
In this case you have two List, that are not types recognizable by Database, so you have to create an Converter for it to store as a String, and another method to do the inverse.
Something like:
class TypeCoverter{
 @TypeConverter
        fun arrayListToString(arrayList: ArrayList<String>?): String? {
            if (arrayList.isNullOrEmpty()) return null
            val string = StringBuilder()
            for (item in arrayList) {
                val isNotTheLastItemInTheArrayList = (item == arrayList.last()).not()
                if (isNotTheLastItemInTheArrayList) {
                    string.append(item).append(COMMA)
                } else {
                    string.append(item)
                }
            }
            return string.toString()
        }
}

  @TypeConverter
        fun stringToArrayList(string: String?): ArrayList<String>? {
            when {
                string.isNullOrEmpty() -> {
                    return null
                }
                string.contains(COMMA).not() -> {
                    val list = ArrayList<String>()
                    list.add(string)
                    return list
                }
                else -> {
                    return string.split(COMMA.toRegex()).dropLastWhile { it.isEmpty() } as ArrayList<String>
                }
            }
        }

That's actually in Kotlin, but you can see how it works.


text:
Q: undefined error in v-show vue In my Vue 2.0 .vue component file, I've got two 'conditions' and based on when they become true, I show them to the user. I have a button to toggle

  <input type="checkbox">
  {{ player.name }}
  {{ player.stats.month.goals }}
  {{ player.stats.month.assists }}
  {{ player.stats.month.played }}

  <input type="checkbox">
  {{ player.name }}
  {{ player.stats.year.goals }}
  {{ player.stats.year.assists }}
  {{ player.stats.year.played }}

Keep in mind that each
...
 will be populated(get data from api) only when a use 'toggles' the showYear or showMonth. Now the problem arises when showYear is toggled then player.stats.month which is required in the showMonth
...
 throws the error "player.stats.month is undefined". Is there anyway I can get around this?

A: Replace v-show with v-if and it will work as it will render only when it should.
v-show changes only visibility, when v-if putting it into DOM only when true.


text:
Q: How to stop `translate` transform from causing an element to be treated as position relative? I have an absolutely positioned div which is a child of a statically-positioned parent container. I'm finding that applying transform: translateY(-50%) to the container is causing the child to treat this container as though it were position: relative.
When I check absolutelyPositionedChild.offsetParent, it points to the container. And when I get container.computedStyleMap().get('position'), it gives me CSSKeywordValue {value: 'static'}. So it is most certainly static, and yet it's being used as the reference. The second I disable the transform in the dev tools inspector, the offsetParent changes to a much higher div that contains the whole app - as intended.
Is this documented somewhere or am I misunderstanding something? More pertinently, is there a way to force it to not be treated as the offsetParent?

A: According to the transform MDN,

If the [transform] property has a value different than none, a stacking context will be created. In that case, the element will act as a containing block for any position: fixed; or position: absolute; elements that it contains.

And according to the containing block MDN,

If the position property is static, relative, or sticky, the containing block is formed by the edge of the content box of the nearest ancestor element that is either a block container (such as an inline-block, block, or list-item element) or establishes a formatting context (such as a table container, flex container, grid container, or the block container itself).

So in this case, the parent element (a containing block that is statically-positioned) inherits the formatting context of the nearest block container. You will have an ancestor with position: relative that is cascading the formatting context.
To prevent this, you can make use of position: revert (though note that it won't work in Internet Explorer).


text:
Q: Wordpress : google map multiple markers change upon sidebar links in accordion I'm using wordpress with jupiter theme and visual composer to build an online agenda of things to do in my city.
We want a page where you can see in a few clicks where all the venues are located.
What I'm trying to do is to have an accordion on the left hand-side and a map (google map?) on the right hand-side.
The accordion would split the venues into categories (theatres, music venues, exhibitions etc..). After clicking on, for example, "theatre", we'd see the names of all the theatres underneath, and the different markers location on the map.
So the markers on the map would change and adapt according to the category of the accordion we'd click on.
It's kinda something like that : http://www.xn--bilan-de-comptences-nzb.fr/listing.php?region=aquitaine&departement=33&ville_cp=33000&page=1
When clicking on "suivant", it goes to an other page. I want to do more or less the same but on a single page.
Html and css aren't the problem, I know how php and mysql work but I'm no expert. I have little knowledge of javascript and jquery.
Thanks for your time and help !

A: I have developed a similar code earlier for Maps and you can play around and do the tables if you need it.

You add this div inside the page or section where you want to add the Map. Use VC html element and Change the dimensions as you want**
Create a file called "Maps.js" and include the following code;
Using the site http://www.latlong.net/ you get the Lat & Long details and change var markers info according to your location. Rememver to save the js file in the js folder on your WordPress theme installation folder.
Let me know how it goes!
jQuery(function($) {
        // Asynchronously Load the map API
        var script = document.createElement('script');
        script.src = "http://maps.googleapis.com/maps/api/js?sensor=false&callback=initialize";
        document.body.appendChild(script);
    });

    function initialize() {
        var map;
        var bounds = new google.maps.LatLngBounds();
        var mapOptions = {
            mapTypeId: 'roadmap'
        };

        // Display a map on the page
        map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
        map.setTilt(45);

        // Multiple Markers
        var markers = [
            ['Church Cross' , 6.027207, 80.216655],
            ['Middle Street', 6.027960, 80.216687],
            ['Lighthouse Street' , 6.026529, 80.216688]
            ['Court Square' , 6.027110, 80.219057]
        ];

        // Info Window Content
        var infoWindowContent = [
            ['
' +
            'Church Cross

' +
            '
No: 9,

Church Cross St,

Galle,

Sri Lanka.
' +        '
'],
            ['
' +
            'Middle Street

' +
            '
No.5, Middle Street,

Galle,

Sri Lanka.
' +
            '
'],
            ['
' +
            'Lighthouse Street

' +
            '
No.5, Middle Street,

Galle,

Sri Lanka.
' +
            '
']
            ['
' +
            'Court Square

' +
            '
No.1, Court Square,

Galle,

Sri Lanka.
' +
            '
']
        ];

        // Display multiple markers on a map
        var infoWindow = new google.maps.InfoWindow(), marker, i;

        // Loop through our array of markers & place each one on the map
        for( i = 0; i < markers.length; i++ ) {
            var position = new google.maps.LatLng(markers[i][1], markers[i][2]);
            bounds.extend(position);
            marker = new google.maps.Marker({
                position: position,
                map: map,
                title: markers[i][0]
            });

            // Allow each marker to have an info window
            google.maps.event.addListener(marker, 'click', (function(marker, i) {
                return function() {
                    infoWindow.setContent(infoWindowContent[i][0]);
                    infoWindow.open(map, marker);
                }
            })(marker, i));

            // Automatically center the map fitting all markers on the screen
            map.fitBounds(bounds);
        }

        // Override our map zoom level once our fitBounds function runs (Make sure it only runs once)
        var boundsListener = google.maps.event.addListener((map), 'bounds_changed', function(event) {
            this.setZoom(17);
            google.maps.event.removeListener(boundsListener);
        });

    }


text:
Q: ASP MVC 4 and IIS I'm developping an ASP MVC 4 application and I'm asking for Hardware configuration and Windows compatibility.
Is it possible to run this Application on Windows 2003? Which IIS is required?

A: Yes, you can run it on Windows 2003 Server. Windows 2003 Server comes with IIS 6. Here's post that shows how to configure ASP.NET MVC4 on it
http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx
Make sure you that under Application Configuration, you uncheck Verify that file exists.


text:
Q: gulp-watch-less not triggering on Windows I have been trying to solve this problem for a couple of days now. I am trying to get gulp to compile my less files when I save them but gulp-watch-less is not being triggered by changes in files I am watching. My gulpfile.js is:
var gulp = require('gulp');
var watchLess = require('gulp-watch-less');
var less = require('gulp-less');

gulp.task('default', function () {
    return gulp.src('less/style.less')
        .pipe(watchLess('less/style.less'))
        .pipe(less())
        .pipe(gulp.dest('css'));
});

/*
gulp.task('watch', function() {
   // Watch less files
  gulp.watch('less/style.less', ['less']);
 });

 gulp.task('less', function() {
    return gulp.src('src/scss/style.scss')
        .pipe(less())
        .pipe(gulp.dest('css'));
});

gulp.task('default', ['watch']);
 */

When I run gulp initially it will generate a new css file, but after that any changes I make to style.less are not triggering the new file update. When I do make changes the console does show:

LESS saw style.less was changed

But the new file is not generated. I tried to follow solutions at Gulp suddenly not working anymore after npm update #800. I have re-installed nodejs twice already to try and get this to work without success.

A: I managed to solve this by using gulp-watch in place of gulp-watch-less. My new gulpfile.js is:
var gulp = require('gulp');
//var watchLess = require('gulp-watch-less');
var watch = require('gulp-watch');
var less = require('gulp-less');
/*
gulp.task('default', function () {
    return gulp.src('less/style.less')
        .pipe(watchLess('less/style.less'))
        .pipe(less())
        .pipe(gulp.dest('css'));
});
*/

gulp.task('watch', function() {
   // Watch less files
  watch('less/style.less', function() {
    gulp.start('less');
    });
 });

 gulp.task('less', function() {
    return gulp.src('less/style.less')
        .pipe(less())
        .pipe(gulp.dest('css'));
});

gulp.task('default', ['watch']);

There does seem to be a problem with using gulp-watch-less on Windows that is not triggering tasks when files are altered.


text:
Q: Cordova - Displaying local image files in a  tag I have a Cordova app (built on Ember.js, using the Corber addon) that I am currently only running on iOS, specifically the iOS simulator (iPhone 8, iOS v12), so it is using a WKWEBVIEW.
The app is using cordova's file plugins to download remote images and store them on the user's device, currently in the "Documents" (cordova.file.documentsDirectory), which works fine, and I've verified that the images do in fact exist there. However I can't figure out the correct URL/URI to use to display those images in the app via standard <img> tags.
Cordova's own documentation says to use the cdvfile:// protocol path (https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-file/#cdvfile-protocol), but even with following the instructions there (adding the content-security meta tag to the index.html, the access rule to the config.xml, etc), it seems like WKWEBVIEW just flat out does not support this protocol, giving me "unsupported URL" errors in the console when I attempt to use it.
Other SO answers on the subject suggest using a normal URL path relative to the cordova app's web server URL, e.g. things like <img src="/Library/NoCloud/path-to-my/file.jpg"> but any path I try 404's.
This seems like such a simple/common use case, but I'm stumped.

A: For anyone else struggling as I was - there is also a solution, which requires no significant change to the code which I found after hopeless days when no solution seemed available
There are 2 steps required:
First update your config.xml with following
<platform name="ios">
  <preference name="scheme" value="app" />
  <preference name="hostname" value="localhost" />
 </platform>

Then convert your file:// link by using the undocumented method
window.WkWebView.convertFilePath(filePath)

This method performs the conversion into a virtual localhost link that makes the file accessible and bypasses the WkWebView restrictions. A little bit longer sample goes like this
let localFile = cordova.file.dataDirectory + 'logo.png';
let convertedPath = window.WkWebView.convertFilePath(localFile);
document.getElementById("myImg").src = convertedPath;

A: I did not work with Cordova but docs you linked say this:

To use cdvfile as a tag' src you can convert it to native path via toURL() method of the resolved fileEntry, which you can get via resolveLocalFileSystemURL - see examples below.

And gives this as an example:
resolveLocalFileSystemURL('cdvfile://localhost/temporary/path/to/file.mp4', function(entry) {
    var nativePath = entry.toURL();
    console.log('Native URI: ' + nativePath);
    document.getElementById('video').src = nativePath;

Given all that, I would say that you can try to create a component, cdv-img. Something like this supposed to work, I think:
import Component from '@ember/component';

export default Component.extend({
  tagName: 'img',
  cdvPath: undefined,
  didReceiveAttrs() {
    this._super(...arguments);
    if (this.cdvPath) {
      resolveLocalFileSystemURL(this.cdvPath, (entry) => {
        this.$().attr('src', entry.toURL());
      });
    }
  },
});

Use it like this:
{{cdv-img cdvPath='cdvfile://localhost/temporary/path/to/file.jpg'}}

UPD
If it does not work with file protocol, you can try to convert image to data url
import Component from '@ember/component';

export default Component.extend({
  tagName: 'img',
  cdvPath: undefined,
  didReceiveAttrs() {
    this._super(...arguments);
    if (this.cdvPath) {
      const el = this.$();
      resolveLocalFileSystemURL(this.cdvPath, (entry) => {
        entry.file(function (file) {
          const reader = new FileReader();

          reader.onloadend = function() {
            el.attr('src', this.result);
          };

          reader.readAsDataURL(file);
        });
      });
    }
  },
});

A: Make sure you don't forget to add these 2 lines and try with whatever solution you are trying, I got my images shown after adding them:
In your config.xml file. add:
<preference name="allowFileAccessFromFileURLs" value="true" />
<preference name="allowUniversalAccessFromFileURLs" value="true" />


text:
Q: How to properly time with nested for loops in Java? I'm trying to time how long it takes for a client to receive a few messages from another client. When create a single for loop and time the result it gives me a normal result:
 // 1 trial sending 10 messages
    startTime = System.nanoTime();
    for (int j = 0; j < 10; j++) {
        receivedMessage = receivingQueue.receive(MESSAGEWAITTIME,TimeUnit.SECONDS).get(); // receives incoming messages as Mqtt5Publish instances  (.get() will return the Mqtt5Publish without the Optional<>)
        byte[] tempData = receivedMessage.getPayloadAsBytes();    // converts the Optional<Mqtt5Publish> to a byte array
        String getData = new String(tempData);  // converts the byte array to a String
        out.println(getData);  // writes each message as a String to a text file
    }
        out.close();

    endTime = System.nanoTime();

The above code gives me an average of 191 milliseconds (I convert it from nano later on in the code) while when I add a nested for loop however my result is actually less and drops down to around 35 milliseconds with the code below. I'm aware of JIT but I have turned it off in the JV arguments in eclipse with the following: -Djava.compiler=NONE yet the code still looks like it being optimized by the compiler.
// 50 trials sending 10 messages
     for (int i = 0; i < 50; i++) {
            startTime = System.nanoTime();

            for (int j = 0; j < 10; j++) {
                receivedMessage = receivingQueue.receive(MESSAGEWAITTIME,TimeUnit.SECONDS).get(); // receives incoming messages as Mqtt5Publish instances  (.get() will return the Mqtt5Publish without the Optional<>)
                byte[] tempData = receivedMessage.getPayloadAsBytes();    // converts the Optional<Mqtt5Publish> to a byte array
                String getData = new String(tempData);  // converts the byte array to a String
                out.println(getData);  // writes each message as a String to a text file
            }
                out.close();

            endTime = System.nanoTime();
            timeReceive = endTime - startTime;
            timeReceiveTotal = timeReceive + timeReceiveTotal;
        }
            timeReceiveTotal = timeReceiveTotal/50;  // gets the average of 50 trials
    }


text:
Q: Directed Graph in Haskell I am now struggling with Haskell. Even, I have some experience with imperative languages, with OOP, but Haskell seems to be different from them. I under-evaluated Haskell, and think learning a new language is not a problem with me. However, after spending a whole week with many new concepts (typeclass, functors, applicative, monoids, monads... reading all 14 chapters from this learnyouahaskell), I noticed that they make me so confused, don't know how to start writing a programme with Haskell. Some experts say that it take you a few months to master Haskell. But I have only two weeks to finish a big project.
1) So my first question is how to learn Haskell
2) When I need to use applicative functors, and when I need to use monads?
3) My project is to handle with directed graph based on many presentations:

*

*adjacency matrix

*binary search tree

I am quite a Haskell newbie, so don't know where I can start with directed graph in Haskell? Do you have any suggestion?

A: To answer your first question (how to learn Haskell), I'd say that you need to actually code in it. It sounds like you read the many chapters of Learn You A Haskell, but they made your head swim. Go a little slower, and -- more importantly -- follow along, by typing and evaluating the code. You say that you "don't know where to start writing a program in Haskell." The practice of actually writing and executing the examples will be exactly what you need to get a feel for how the code works, and where to start.
You're probably not quite prepared for the answer to your second question (when to use Monad and when to use Applicative) -- work through LYAH, though, and you'll definitely know when to use each.
As far as directed graphs specifically, this is a good resource (the Amazon reviews aren't very good, but I think it's a great introduction to the concepts of graphs and abstract data types in Haskell).
Good luck - Haskell is well worth the struggle!


text:
Q: How to see which ANSI code page is used in Windows? How can I get the number of ANSI code page that define in my Windows?
I serach a simply way , via command line  is the best, but via c/c# is pretty good (python is the worst way)
I looking so much and dind't find any simple way

A: Via command line:
Check system-wide ANSI codepage:
REG QUERY "HKLM\SYSTEM\CurrentControlSet\Control\Nls\CodePage" -v ACP|find /I "ACP"

ACP    REG_SZ    1250

Check system-wide ANSI, OEM and MAC codepages:
REG QUERY "HKLM\SYSTEM\CurrentControlSet\Control\Nls\CodePage" | findstr /I "CP.*REG_SZ"

ACP    REG_SZ    1250
OEMCP    REG_SZ    852
MACCP    REG_SZ    10029

Note: above results (1250/852/10029) are valid for my current Windows language settings.

A:
How can I get the number of ANSI code page that define in my Windows?
I serach a simply way , via command line is the best, but via c/c# is
  pretty good (python is the worst way)

Sample In C++  for all Code Pages =>
(you can add a filter on "ANSI" )
    OutputDebugString(L"Installed Code Pages :\n");
    EnumSystemCodePages((CODEPAGE_ENUMPROC)EnumCodePagesProc, CP_INSTALLED);
    OutputDebugString(L"Supported Code Pages :\n");
    EnumSystemCodePages((CODEPAGE_ENUMPROC)EnumCodePagesProc, CP_SUPPORTED);

    BOOL CALLBACK EnumCodePagesProc(LPTSTR lpCodePageString)
    {
        CPINFOEX cpiex = { 0 };
        if (GetCPInfoEx((UINT)_wtoi(lpCodePageString), 0, &cpiex))
        {
            WCHAR wsBuffer[MAX_PATH];
            wsprintf(wsBuffer, L"\tCode Page : %s\n", cpiex.CodePageName);
            OutputDebugString(wsBuffer);
        }
        return TRUE;
    }

I get on my OS (Windows 10) =>
Installed Code Pages :
    Code Page : 10000 (MAC - romain)
    Code Page : 10001 (MAC - japonais)
    Code Page : 10002 (MAC - chinois traditionnel Big5)
    Code Page : 10003 (MAC - coréen)
    Code Page : 10004 (MAC - arabe)
    Code Page : 10005 (MAC - hébreu)
    Code Page : 10006 (MAC - grec I)
    Code Page : 10007 (MAC - cyrillique)
    Code Page : 10008 (MAC - chinois simplifié GB 2312)
    Code Page : 10010 (MAC - Roumanie)
    Code Page : 10017 (MAC - Ukraine)
    Code Page : 10021 (MAC - thaï)
    Code Page : 10029 (MAC - latin II)
    Code Page : 10079 (MAC - islandais)
    Code Page : 10081 (MAC - turc)
    Code Page : 10082 (MAC - croate)
    Code Page : 1026 (IBM EBCDIC - Turc (Latin-5))
    Code Page : 1047 (IBM EBCDIC - Latin-1/système ouvert)
    Code Page : 1140  (IBM EBCDIC - É.U./Canada (37 + Euro))
    Code Page : 1141  (IBM EBCDIC - Allemagne (20273 + Euro))
    Code Page : 1142  (IBM EBCDIC - Danemark/Norvège (20277 + Euro))
    Code Page : 1143  (IBM EBCDIC - Finlande/Suède (20278 + Euro))
    Code Page : 1144 (IBM EBCDIC - Italie (20280 + Euro))
    Code Page : 1145  (IBM EBCDIC - Amérique Latine/Espagne (20284 + Euro))
    Code Page : 1146 (IBM EBCDIC - Royaume-Uni (20285 + Euro))
    Code Page : 1148 (IBM EBCDIC - International (500 + Euro))
    Code Page : 1149  (IBM EBCDIC - Islandais (20871 + Euro))
    Code Page : 1250  (ANSI - Europe centrale)
    Code Page : 1251  (ANSI - cyrillique)
    Code Page : 1252  (ANSI - latin I)
    Code Page : 1253  (ANSI - grec)
    Code Page : 1254  (ANSI - turc)
    Code Page : 1255  (ANSI - hébreu)
    Code Page : 1256  (ANSI - arabe)
    Code Page : 1257  (ANSI - baltique)
    Code Page : 1258  (ANSI/OEM - Vietnam)
    Code Page : 1361  (coréen - Johab)
    Code Page : 20000 (CNS - Taïwan)
    Code Page : 20001 (TCA - Taïwan)
    Code Page : 20002 (Eten - Taïwan)
    Code Page : 20003 (IBM5550 - Taïwan)
    Code Page : 20004 (TeleText - Taïwan)
    Code Page : 20005 (Wang - Taïwan)
    Code Page : 20105 (IA5 IRV alphabet international No.5)
    Code Page : 20106 (IA5 allemand)
    Code Page : 20107 (IA5 suédois)
    Code Page : 20108 (IA5 norvégien)
    Code Page : 20127 (ASCII - É-U.)
    Code Page : 20261 (T.61)
    Code Page : 20269 (ISO 6937 accent sans espace)
    Code Page : 20273 (IBM EBCDIC - Allemagne)
    Code Page : 20277 (IBM EBCDIC - Danemark/Norvège)
    Code Page : 20278 (IBM EBCDIC - Finlande/Suède)
    Code Page : 20280 (IBM EBCDIC - Italie)
    Code Page : 20284 (IBM EBCDIC - Amérique latine/Espagne)
    Code Page : 20285 (IBM EBCDIC - Royaume Uni)
    Code Page : 20290 (IBM EBCDIC - japonais Katakana étendu)
    Code Page : 20297 (IBM EBCDIC - France)
    Code Page : 20420 (IBM EBCDIC - arabe)
    Code Page : 20423 (IBM EBCDIC - grec)
    Code Page : 20424 (IBM EBCDIC - hébreu)
    Code Page : 20833 (IBM EBCDIC - coréen étendu)
    Code Page : 20838 (IBM EBCDIC - thaï)
    Code Page : 20866 (russe - KOI8)
    Code Page : 20871 (IBM EBCDIC - islandais)
    Code Page : 20880 (IBM EBCDIC - cyrillique (russe))
    Code Page : 20905 (IBM EBCDIC - turc)
    Code Page : 20924 (IBM EBCDIC - Latin-1/Système ouvert (1047 + Euro))
    Code Page : 20932 (JIS X 0208-1990  0212-1990)
    Code Page : 20936 (chinois simplifié GB2312)
    Code Page : 21025 (IBM EBCDIC - cyrillique (serbe, bulgare))
    Code Page : 21027 (minuscules alpha étendues)
    Code Page : 21866 (ukrainien - KOI8-U)
    Code Page : 28591 (ISO 8859-1 latin I)
    Code Page : 28592 (ISO 8859-2 Europe centrale)
    Code Page : 28593 (ISO 8859-3 latin 3)
    Code Page : 28594 (ISO 8859-4 baltique)
    Code Page : 28595 (ISO 8859-5 cyrillique)
    Code Page : 28596 (ISO 8859-6 arabe)
    Code Page : 28597 (ISO 8859-7 grec)
    Code Page : 28598 (ISO 8859-8 hébreu : ordre visuel)
    Code Page : 28599 (ISO 8859-9 latin 5)
    Code Page : 28603 (ISO 8859-13 Latin 7)
    Code Page : 28605 (ISO 8859-15 latin 9)
    Code Page : 37    (IBM EBCDIC - États-Unis/Canada)
    Code Page : 38598 (ISO 8859-8 hébreu : tri logique)
    Code Page : 437   (OEM - États-Unis)
    Code Page : 500   (IBM EBCDIC - international)
    Code Page : 50220 (ISO-2022 japonais sans Katakana demi largeur)
    Code Page : 50220 (ISO-2022 japonais avec Katakana demi largeur)
    Code Page : 50222 (ISO-2022 japonais JIS X 0201-1989)
    Code Page : 50225 (ISO-2022 coréen)
    Code Page : 50227 (ISO-2022 chinois simplifié)
    Code Page : 50229 (ISO-2022 chinois traditionnel)
    Code Page : 51949 (EUC-coréen)
    Code Page : 52936 (HZ-GB2312 chinois simplifié)
    Code Page : 54936 (chinois simplifié GB 18030)
    Code Page : 55000 (7 bits SMS GSM)
    Code Page : 55001 (espagnol 7 bits SMS GSM)
    Code Page : 55002 (portugais 7 bits SMS GSM)
    Code Page : 55003 (turc 7 bits SMS GSM)
    Code Page : 55004 (grec 7 bits SMS GSM)
    Code Page : 57002 (ISCII - dévanâgari)
    Code Page : 57003 (ISCII - bengali)
    Code Page : 57004 (ISCII - tamoul)
    Code Page : 57005 (ISCII - télougou)
    Code Page : 57006 (ISCII - assamais)
    Code Page : 57007 (ISCII - odia (oriya))
    Code Page : 57008 (ISCII - kannada)
    Code Page : 57009 (ISCII - malayalam)
    Code Page : 57010 (ISCII - gujarati)
    Code Page : 57011 (ISCII - pendjabi (gurmukhi))
    Code Page : 708   (arabe - ASMO)
    Code Page : 720   (arabe - ASMO transparent)
    Code Page : 737   (OEM - grec 437G)
    Code Page : 775   (OEM - baltique)
    Code Page : 850   (OEM - latin multilingue I)
    Code Page : 852   (OEM - latin II)
    Code Page : 855   (OEM - cyrillique)
    Code Page : 857   (OEM - turc)
    Code Page : 858   (OEM - latin multilingue I + Euro)
    Code Page : 860   (OEM - portugais)
    Code Page : 861   (OEM - islandais)
    Code Page : 862   (OEM - hébreu)
    Code Page : 863   (OEM - canadien français)
    Code Page : 864   (OEM - arabe)
    Code Page : 865   (OEM - nordique)
    Code Page : 866   (OEM - russe)
    Code Page : 869   (OEM - grec moderne)
    Code Page : 870   (IBM EBCDIC - multilingue/ROECE (latin-2))
    Code Page : 874   (ANSI/OEM - thaï)
    Code Page : 875   (IBM EBCDIC - grec moderne)
    Code Page : 932   (ANSI/OEM - japonais décalage JIS)
    Code Page : 936   (ANSI/OEM - chinois simplifié GBK)
    Code Page : 949   (ANSI/OEM - coréen)
    Code Page : 950   (ANSI/OEM - chinois traditionnel Big5)
    Code Page : 65000 (UTF-7)
    Code Page : 65001 (UTF-8)
Supported Code Pages :
    Code Page : 10000 (MAC - romain)
    Code Page : 10001 (MAC - japonais)
    Code Page : 10002 (MAC - chinois traditionnel Big5)
    Code Page : 10003 (MAC - coréen)
    Code Page : 10004 (MAC - arabe)
    Code Page : 10005 (MAC - hébreu)
    Code Page : 10006 (MAC - grec I)
    Code Page : 10007 (MAC - cyrillique)
    Code Page : 10008 (MAC - chinois simplifié GB 2312)
    Code Page : 10010 (MAC - Roumanie)
    Code Page : 10017 (MAC - Ukraine)
    Code Page : 10021 (MAC - thaï)
    Code Page : 10029 (MAC - latin II)
    Code Page : 10079 (MAC - islandais)
    Code Page : 10081 (MAC - turc)
    Code Page : 10082 (MAC - croate)
    Code Page : 1026 (IBM EBCDIC - Turc (Latin-5))
    Code Page : 1047 (IBM EBCDIC - Latin-1/système ouvert)
    Code Page : 1140  (IBM EBCDIC - É.U./Canada (37 + Euro))
    Code Page : 1141  (IBM EBCDIC - Allemagne (20273 + Euro))
    Code Page : 1142  (IBM EBCDIC - Danemark/Norvège (20277 + Euro))
    Code Page : 1143  (IBM EBCDIC - Finlande/Suède (20278 + Euro))
    Code Page : 1144 (IBM EBCDIC - Italie (20280 + Euro))
    Code Page : 1145  (IBM EBCDIC - Amérique Latine/Espagne (20284 + Euro))
    Code Page : 1146 (IBM EBCDIC - Royaume-Uni (20285 + Euro))
    Code Page : 1148 (IBM EBCDIC - International (500 + Euro))
    Code Page : 1149  (IBM EBCDIC - Islandais (20871 + Euro))
    Code Page : 1250  (ANSI - Europe centrale)
    Code Page : 1251  (ANSI - cyrillique)
    Code Page : 1252  (ANSI - latin I)
    Code Page : 1253  (ANSI - grec)
    Code Page : 1254  (ANSI - turc)
    Code Page : 1255  (ANSI - hébreu)
    Code Page : 1256  (ANSI - arabe)
    Code Page : 1257  (ANSI - baltique)
    Code Page : 1258  (ANSI/OEM - Vietnam)
    Code Page : 1361  (coréen - Johab)
    Code Page : 20000 (CNS - Taïwan)
    Code Page : 20001 (TCA - Taïwan)
    Code Page : 20002 (Eten - Taïwan)
    Code Page : 20003 (IBM5550 - Taïwan)
    Code Page : 20004 (TeleText - Taïwan)
    Code Page : 20005 (Wang - Taïwan)
    Code Page : 20105 (IA5 IRV alphabet international No.5)
    Code Page : 20106 (IA5 allemand)
    Code Page : 20107 (IA5 suédois)
    Code Page : 20108 (IA5 norvégien)
    Code Page : 20127 (ASCII - É-U.)
    Code Page : 20261 (T.61)
    Code Page : 20269 (ISO 6937 accent sans espace)
    Code Page : 20273 (IBM EBCDIC - Allemagne)
    Code Page : 20277 (IBM EBCDIC - Danemark/Norvège)
    Code Page : 20278 (IBM EBCDIC - Finlande/Suède)
    Code Page : 20280 (IBM EBCDIC - Italie)
    Code Page : 20284 (IBM EBCDIC - Amérique latine/Espagne)
    Code Page : 20285 (IBM EBCDIC - Royaume Uni)
    Code Page : 20290 (IBM EBCDIC - japonais Katakana étendu)
    Code Page : 20297 (IBM EBCDIC - France)
    Code Page : 20420 (IBM EBCDIC - arabe)
    Code Page : 20423 (IBM EBCDIC - grec)
    Code Page : 20424 (IBM EBCDIC - hébreu)
    Code Page : 20833 (IBM EBCDIC - coréen étendu)
    Code Page : 20838 (IBM EBCDIC - thaï)
    Code Page : 20866 (russe - KOI8)
    Code Page : 20871 (IBM EBCDIC - islandais)
    Code Page : 20880 (IBM EBCDIC - cyrillique (russe))
    Code Page : 20905 (IBM EBCDIC - turc)
    Code Page : 20924 (IBM EBCDIC - Latin-1/Système ouvert (1047 + Euro))
    Code Page : 20932 (JIS X 0208-1990  0212-1990)
    Code Page : 20936 (chinois simplifié GB2312)
    Code Page : 21025 (IBM EBCDIC - cyrillique (serbe, bulgare))
    Code Page : 21027 (minuscules alpha étendues)
    Code Page : 21866 (ukrainien - KOI8-U)
    Code Page : 28591 (ISO 8859-1 latin I)
    Code Page : 28592 (ISO 8859-2 Europe centrale)
    Code Page : 28593 (ISO 8859-3 latin 3)
    Code Page : 28594 (ISO 8859-4 baltique)
    Code Page : 28595 (ISO 8859-5 cyrillique)
    Code Page : 28596 (ISO 8859-6 arabe)
    Code Page : 28597 (ISO 8859-7 grec)
    Code Page : 28598 (ISO 8859-8 hébreu : ordre visuel)
    Code Page : 28599 (ISO 8859-9 latin 5)
    Code Page : 28603 (ISO 8859-13 Latin 7)
    Code Page : 28605 (ISO 8859-15 latin 9)
    Code Page : 37    (IBM EBCDIC - États-Unis/Canada)
    Code Page : 38598 (ISO 8859-8 hébreu : tri logique)
    Code Page : 437   (OEM - États-Unis)
    Code Page : 500   (IBM EBCDIC - international)
    Code Page : 50220 (ISO-2022 japonais sans Katakana demi largeur)
    Code Page : 50220 (ISO-2022 japonais avec Katakana demi largeur)
    Code Page : 50222 (ISO-2022 japonais JIS X 0201-1989)
    Code Page : 50225 (ISO-2022 coréen)
    Code Page : 50227 (ISO-2022 chinois simplifié)
    Code Page : 50229 (ISO-2022 chinois traditionnel)
    Code Page : 51949 (EUC-coréen)
    Code Page : 52936 (HZ-GB2312 chinois simplifié)
    Code Page : 54936 (chinois simplifié GB 18030)
    Code Page : 55000 (7 bits SMS GSM)
    Code Page : 55001 (espagnol 7 bits SMS GSM)
    Code Page : 55002 (portugais 7 bits SMS GSM)
    Code Page : 55003 (turc 7 bits SMS GSM)
    Code Page : 55004 (grec 7 bits SMS GSM)
    Code Page : 57002 (ISCII - dévanâgari)
    Code Page : 57003 (ISCII - bengali)
    Code Page : 57004 (ISCII - tamoul)
    Code Page : 57005 (ISCII - télougou)
    Code Page : 57006 (ISCII - assamais)
    Code Page : 57007 (ISCII - odia (oriya))
    Code Page : 57008 (ISCII - kannada)
    Code Page : 57009 (ISCII - malayalam)
    Code Page : 57010 (ISCII - gujarati)
    Code Page : 57011 (ISCII - pendjabi (gurmukhi))
    Code Page : 708   (arabe - ASMO)
    Code Page : 720   (arabe - ASMO transparent)
    Code Page : 737   (OEM - grec 437G)
    Code Page : 775   (OEM - baltique)
    Code Page : 850   (OEM - latin multilingue I)
    Code Page : 852   (OEM - latin II)
    Code Page : 855   (OEM - cyrillique)
    Code Page : 857   (OEM - turc)
    Code Page : 858   (OEM - latin multilingue I + Euro)
    Code Page : 860   (OEM - portugais)
    Code Page : 861   (OEM - islandais)
    Code Page : 862   (OEM - hébreu)
    Code Page : 863   (OEM - canadien français)
    Code Page : 864   (OEM - arabe)
    Code Page : 865   (OEM - nordique)
    Code Page : 866   (OEM - russe)
    Code Page : 869   (OEM - grec moderne)
    Code Page : 870   (IBM EBCDIC - multilingue/ROECE (latin-2))
    Code Page : 874   (ANSI/OEM - thaï)
    Code Page : 875   (IBM EBCDIC - grec moderne)
    Code Page : 932   (ANSI/OEM - japonais décalage JIS)
    Code Page : 936   (ANSI/OEM - chinois simplifié GBK)
    Code Page : 949   (ANSI/OEM - coréen)
    Code Page : 950   (ANSI/OEM - chinois traditionnel Big5)
    Code Page : 65000 (UTF-7)
    Code Page : 65001 (UTF-8)