freeze

Freeze asp.net grid view column

半城伤御伤魂 提交于 2019-11-30 14:24:44
How can i freeze initial 2 -3 leftmost column in asp.net grid view? so that while horizontal scrolling initial 2 - 3 columns that got freezes will always be display. Any answers?? Yes, it seems to be possible with some css magic, with the pinned and scrollable columns on different z-indexes to keep the pinned on top. This comes with the caveat that overflow:scroll may not be 100% portable (I've tested on IE 8/9 and Chrome FWIW). Take a look at this jsFiddle here The ASPX I used to generate the GridView is below. Note the css classes pinned and scrollable for fixed and scrolling columns

How can I call ajax synchronously without my web page freezing

半腔热情 提交于 2019-11-29 23:34:12
问题 I have some javascript that fires off about 100 calls to a php script. the php script uses up a lot of memory and takes a few seconds to complete, then returns a json response of pass or fail. I don't want the ajax calls to be asynchronous as the server would come to a grinding halt running 100 instances of itself, so I tried using synchronous, the only problem being it freezes the webpage while it calls the script one call at a time. How can I fire off the ajax calls one at a time and not

Object.freeze

安稳与你 提交于 2019-11-29 21:44:12
Object.freeze() 方法可以 冻结 一个对象。一个被冻结的对象再也不能被修改;冻结了一个对象则不能向这个对象添加新的属性,不能删除已有属性,不能修改该对象已有属性的可枚举性、可配置性、可写性,以及不能修改已有属性的值。此外,冻结一个对象后该对象的原型也不能被修改。 freeze() 返回和传入的参数相同的对象。 const obj = { prop: 42 }; Object.freeze(obj); obj.prop = 33; // Throws an error in strict mode console.log(obj.prop); // expected output: 42 同样可以冻结数组 let a = [0]; Object.freeze(a); // 现在数组不能被修改了. a[0]=1; // fails silently a.push(2); // fails silently 冻结对象只是进行了“浅冻结” obj1 = { internal: {} }; Object.freeze(obj1); obj1.internal.a = 'aValue'; obj1.internal.a // 'aValue' 实现深冻结需要使用递归进行操作 function deepFreeze(obj) { // 取回定义在obj上的属性名 var

'Freezing' Arrays in Javascript?

半腔热情 提交于 2019-11-29 16:39:57
问题 Since the ECMA-262 specifications Javascript has gained the Object.freeze() method, which allows for objects, whose properties can not be changed, added or removed. var obj = {'a':1, 'b:2'}; Object.freeze(obj); Object.isFrozen(obj); // returns true obj.a = 10; // new assignment has no affect obj.a; // returns 1 So far so good. I am wondering, whether freeze() should also work on Arrays. var arr = [1, 2]; Object.freeze(arr); Object.isFrozen(arr); // returns true arr[0] = 10; arr; // returns

JavaFX program locks/freezes whilst running

非 Y 不嫁゛ 提交于 2019-11-29 16:34:30
I'm trying to create a JavaFX program, which is working - but I am trying to get a progress bar to update whilst it is running. However, the program just seems to freeze and locks up until it has finished processing. Does anyone have an idea of how I can get the program not to freeze whilst running - and to get the progress bar to update whilst it processes? Thanks You can put the progressbar progress in a Platform.runLater(()-> progressBar.setProgress(progressValue)); so it will be executed at a later point in time. 来源: https://stackoverflow.com/questions/28941347/javafx-program-locks-freezes

iOS 9 App freeze with console log “BKSendHIDEvent”

吃可爱长大的小学妹 提交于 2019-11-29 12:01:00
问题 After app launched for a long time, there are some logs in console while touching the screen: BKSendHIDEvent: IOHIDEventSystemConnectionDispatchEvent error:0xE00002E8 -- Unknown event dropped and all buttons have no response, whole app freeze. Currently, this problem only happened on iPhone 5s. Similar issue: https://forums.xamarin.com/discussion/55646/alot-of-annotation-on-mkmapview Does anyone have the same issue? Update : I've found that there are more than 500 threads when app being

iPhone - UIScrollView and UIDatePicker scrolling conflict : the one interfer with the second

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 11:46:14
I have a UIDatePicker inside a UIScrollView. But the UIDatePicker does not respond to scroll touches. It's the scrollview that is scrolling. Reading some docs on the net, I've set "Delay Content Touches" to NO, an now I see the datepicker starting a slight scroll, but it's still the scrollview that take the final word. I have some place on the screen where the user can touch to scroll the view. So how may I separate the two kind of scrolls ans make the datepicker scroll in a normal way ? Thank you for your help Solved using that post : http://www.alexc.me/uiscrollview-and-uidatepicker/153/

cx-freeze fails to include modules even when included specifically

对着背影说爱祢 提交于 2019-11-29 11:04:11
I am trying to use cx-freeze to create a static self-contained distribution of my app (The Spye Python Engine, www.spye.dk ), however, when I run cx-freeze, it says: Missing modules: ? _md5 imported from hashlib ? _scproxy imported from urllib ? _sha imported from hashlib ? _sha256 imported from hashlib ? _sha512 imported from hashlib ? _subprocess imported from subprocess ? configparser imported from apport.fileutils ? usercustomize imported from site This is my setup.py: #!/usr/bin/env python from cx_Freeze import setup, Executable includes = ["hashlib", "urllib", "subprocess", "fileutils",

Opencv imshow() freezes when updating

瘦欲@ 提交于 2019-11-29 08:20:36
问题 For my image processing algorithm I'm using python / OpenCV. The output of my algorithm shall be updated im the same window over and over again. However sometimes the window freezes and doesn't update at all, but the algorithm is still running and updated the picture a multiple times in the meantime. The window turns dark gray on this Ubuntu machine. Here is an excerpt of the involved code: for i in range(0,1000): img = loadNextImg() procImg = processImg(img) cv2.imshow("The result", procImg)

Kernel freeze : How to debug it?

牧云@^-^@ 提交于 2019-11-29 04:20:46
I have an embedded board with a kernel module of thousands of lines which freeze on random and complexe use case with random time. What are the solution for me to try to debug it ? I have already try magic System Request but it does not work. I guess that the explanation is that I am in a loop or a deadlock in a code where hardware interrupt is disable ? Thanks, Eva. Typically, embedded boards have a watch dog . You should enable this timer and use the watchdog user process to kick the watch dog hard ware. Use nice on the watchdog process so that higher priority tasks must relinquish the CPU.